From fe4d96435d49250da07ed5ce3bdc0054aa733f26 Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Wed, 27 May 2009 12:36:58 -0500 Subject: [PATCH] winex11.drv: move tsx11_lock call to more closely enclose an x11 call --- dlls/winex11.drv/desktop.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/winex11.drv/desktop.c b/dlls/winex11.drv/desktop.c index 5b96e33..da19580 100644 --- a/dlls/winex11.drv/desktop.c +++ b/dlls/winex11.drv/desktop.c @@ -206,8 +206,6 @@ static void update_desktop_fullscreen( unsigned int width, unsigned int height) Display *display = thread_display(); XEvent xev; - wine_tsx11_lock(); - xev.xclient.type = ClientMessage; xev.xclient.window = root_window; xev.xclient.message_type = x11drv_atom(_NET_WM_STATE); @@ -225,6 +223,8 @@ 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 ); -- 1.5.4.3