From 292869b969a3f59a44f0b5b121e51c833ee29ad9 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Mon, 13 Aug 2012 11:39:42 +0200 Subject: [PATCH] winex11: Explicitly clear virtual desktop maximized state. --- dlls/winex11.drv/desktop.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/winex11.drv/desktop.c b/dlls/winex11.drv/desktop.c index 66b1e118c51..657284516cf 100644 --- a/dlls/winex11.drv/desktop.c +++ b/dlls/winex11.drv/desktop.c @@ -233,6 +233,11 @@ static void update_desktop_fullscreen( unsigned int width, unsigned int height) TRACE("action=%li\n", xev.xclient.data.l[0]); 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();