Mercurial > audlegacy
diff src/audacious/ui_playlist.c @ 2338:d0a04f1ee732 trunk
[svn] - in playlistwin_hide(), pass focus to the player main window only if it's visible
author | giacomo |
---|---|
date | Mon, 15 Jan 2007 09:18:27 -0800 |
parents | d88558b0de0a |
children | 564e8a1fe09a |
line wrap: on
line diff
--- a/src/audacious/ui_playlist.c Mon Jan 15 08:51:37 2007 -0800 +++ b/src/audacious/ui_playlist.c Mon Jan 15 09:18:27 2007 -0800 @@ -1811,8 +1811,11 @@ tbutton_set_toggled(mainwin_pl, FALSE); cfg.playlist_visible = FALSE; - gtk_window_present(GTK_WINDOW(mainwin)); - gtk_widget_grab_focus(mainwin); + if ( cfg.player_visible ) + { + gtk_window_present(GTK_WINDOW(mainwin)); + gtk_widget_grab_focus(mainwin); + } } void action_playlist_track_info(void)