winex11: Explicitly clear virtual desktop maximized state.

This commit is contained in:
Henri Verbeet 2012-08-13 11:39:42 +02:00 committed by Alexandre Julliard
parent 13820b6f94
commit 292869b969
1 changed files with 5 additions and 0 deletions

View File

@ -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();