Alexandre Julliard : winex11: Fix the type hint for the desktop window.

Alexandre Julliard julliard at winehq.org
Mon Apr 14 07:14:24 CDT 2008


Module: wine
Branch: master
Commit: 18f4fb98836eb615a46efabf20945e59339520ed
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=18f4fb98836eb615a46efabf20945e59339520ed

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Apr 14 13:27:38 2008 +0200

winex11: Fix the type hint for the desktop window.

---

 dlls/winex11.drv/window.c |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c
index a1477c0..ab63f3b 100644
--- a/dlls/winex11.drv/window.c
+++ b/dlls/winex11.drv/window.c
@@ -829,16 +829,22 @@ void X11DRV_set_wm_hints( Display *display, struct x11drv_win_data *data )
     Window group_leader;
     Atom window_type;
     MwmHints mwm_hints;
-    DWORD style = GetWindowLongW( data->hwnd, GWL_STYLE );
-    DWORD ex_style = GetWindowLongW( data->hwnd, GWL_EXSTYLE );
-    HWND owner = GetWindow( data->hwnd, GW_OWNER );
+    DWORD style, ex_style;
+    HWND owner;
 
     if (data->hwnd == GetDesktopWindow())
     {
         /* force some styles for the desktop to get the correct decorations */
-        style |= WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX;
+        style = WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX;
+        ex_style = WS_EX_APPWINDOW;
         owner = 0;
     }
+    else
+    {
+        style = GetWindowLongW( data->hwnd, GWL_STYLE );
+        ex_style = GetWindowLongW( data->hwnd, GWL_EXSTYLE );
+        owner = GetWindow( data->hwnd, GW_OWNER );
+    }
 
     /* transient for hint */
     if (owner)




More information about the wine-cvs mailing list