winex11.drv: Don't add owned windows to the taskbar

Dmitry Timoshkov dmitry at codeweavers.com
Mon Mar 24 01:33:34 CDT 2008


Hello,

this patch fixes the bug 12160. According to my tests explorer in XP
doesn't add owned windows to the taskbar.

Changelog:
    winex11.drv: Don't add owned windows to the taskbar.
---
 dlls/winex11.drv/winpos.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winex11.drv/winpos.c b/dlls/winex11.drv/winpos.c
index 25e643e..058765a 100644
--- a/dlls/winex11.drv/winpos.c
+++ b/dlls/winex11.drv/winpos.c
@@ -197,7 +197,7 @@ static void update_net_wm_states( Display *display, struct x11drv_win_data *data
     ex_style = GetWindowLongW( data->hwnd, GWL_EXSTYLE );
     if (ex_style & WS_EX_TOPMOST)
         new_state |= (1 << NET_WM_STATE_ABOVE);
-    if (ex_style & WS_EX_TOOLWINDOW)
+    if ((ex_style & WS_EX_TOOLWINDOW) || GetWindow( data->hwnd, GW_OWNER ))
         new_state |= (1 << NET_WM_STATE_SKIP_TASKBAR) | (1 << NET_WM_STATE_SKIP_PAGER);
 
     xev.xclient.type = ClientMessage;
-- 
1.5.4.3






More information about the wine-patches mailing list