[1/6] explorer: Always show tray window.

Vincent Povirk madewokherd at gmail.com
Tue Dec 10 15:06:47 CST 2013


I'm calling this the "uglify virtual desktops forever" patch series.
-------------- next part --------------
From 294c487e840c4d9cf48c8fea873e802f127b6126 Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Thu, 5 Dec 2013 14:00:55 -0600
Subject: [PATCH 1/6] explorer: Always show tray window.

---
 programs/explorer/systray.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/programs/explorer/systray.c b/programs/explorer/systray.c
index c15fbf0..3159e3e 100644
--- a/programs/explorer/systray.c
+++ b/programs/explorer/systray.c
@@ -322,8 +322,6 @@ static BOOL show_icon(struct icon *icon)
     update_tooltip_position( icon );
     invalidate_icons( nb_displayed-1, nb_displayed-1 );
 
-    if (nb_displayed == 1 && !hide_systray) ShowWindow( tray_window, SW_SHOWNA );
-
     create_tooltip(icon);
     update_balloon( icon );
     return TRUE;
@@ -349,8 +347,6 @@ static BOOL hide_icon(struct icon *icon)
     invalidate_icons( icon->display, nb_displayed );
     icon->display = -1;
 
-    if (!nb_displayed) ShowWindow( tray_window, SW_HIDE );
-
     update_balloon( icon );
     update_tooltip_position( icon );
     return TRUE;
@@ -668,4 +664,6 @@ void initialize_systray( HMODULE graphics_driver, BOOL using_root )
     }
 
     if (hide_systray) do_hide_systray();
+
+    ShowWindow( tray_window, SW_SHOWNA );
 }
-- 
1.8.1.2


More information about the wine-patches mailing list