[PATCH 2/2] winex11: Explicitly clear virtual desktop maximized state.

Henri Verbeet hverbeet at codeweavers.com
Mon Aug 13 04:39:42 CDT 2012


We never set this, but on some versions of kwin (4.8.3) we apparently acquire
these automatically if the virtual desktop is initially created as fullscreen.
---
 dlls/winex11.drv/desktop.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/dlls/winex11.drv/desktop.c b/dlls/winex11.drv/desktop.c
index 66b1e11..6572845 100644
--- a/dlls/winex11.drv/desktop.c
+++ b/dlls/winex11.drv/desktop.c
@@ -235,6 +235,11 @@ static void update_desktop_fullscreen( unsigned int width, unsigned int height)
     wine_tsx11_lock();
     XSendEvent( display, DefaultRootWindow(display), False,
                 SubstructureRedirectMask | SubstructureNotifyMask, &xev );
+
+    xev.xclient.data.l[1] = x11drv_atom(_NET_WM_STATE_MAXIMIZED_VERT);
+    xev.xclient.data.l[2] = x11drv_atom(_NET_WM_STATE_MAXIMIZED_HORZ);
+    XSendEvent( display, DefaultRootWindow(display), False,
+                SubstructureRedirectMask | SubstructureNotifyMask, &xev );
     wine_tsx11_unlock();
 }
 
-- 
1.7.8.6




More information about the wine-patches mailing list