From 2280f1af79307b945e250f78586ffa5dada00fdb Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Fri, 7 Jul 2006 23:54:00 +0900 Subject: [PATCH] winex11.drv: Protect X11 calls by a critical section. --- dlls/winex11.drv/event.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c index aa9c1d641de..92300c5a5bf 100644 --- a/dlls/winex11.drv/event.c +++ b/dlls/winex11.drv/event.c @@ -453,8 +453,10 @@ static void handle_wm_protocols( HWND hwnd, XClientMessageEvent *event ) xev = *event; TRACE("NET_WM Ping\n"); + wine_tsx11_lock(); xev.window = DefaultRootWindow(xev.display); XSendEvent(xev.display, xev.window, False, SubstructureRedirectMask | SubstructureNotifyMask, (XEvent*)&xev); + wine_tsx11_unlock(); /* this line is semi-stolen from gtk2 */ TRACE("NET_WM Pong\n"); }