Module: wine Branch: master Commit: 5e1e682a173e009cfdbc7947ff9493550dba0fba URL: http://source.winehq.org/git/wine.git/?a=commit;h=5e1e682a173e009cfdbc7947ff...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Jun 17 12:08:03 2016 +0900
explorer: Fix hiding the taskbar when there are no system tray items.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
programs/explorer/systray.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/programs/explorer/systray.c b/programs/explorer/systray.c index fe8af86..97cffbc 100644 --- a/programs/explorer/systray.c +++ b/programs/explorer/systray.c @@ -118,6 +118,7 @@ static HWND balloon_window;
#define WM_POPUPSYSTEMMENU 0x0313
+static void do_hide_systray(void); static void do_show_systray(void);
/* Retrieves icon record by owner window and ID */ @@ -366,7 +367,7 @@ static BOOL hide_icon(struct icon *icon) invalidate_icons( icon->display, nb_displayed ); icon->display = -1;
- if (!nb_displayed && !enable_shell) ShowWindow( tray_window, SW_HIDE ); + if (!nb_displayed && !enable_shell) do_hide_systray();
update_balloon( icon ); update_tooltip_position( icon ); @@ -747,7 +748,7 @@ static LRESULT WINAPI tray_wndproc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM l return handle_incoming((HWND)wparam, (COPYDATASTRUCT *)lparam);
case WM_DISPLAYCHANGE: - if (hide_systray) do_hide_systray(); + if (hide_systray || (!nb_displayed && !enable_shell)) do_hide_systray(); else do_show_systray(); break;