Dmitry Timoshkov : winex11.drv: Protect X11 calls by a critical
section.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jul 10 07:12:10 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 2280f1af79307b945e250f78586ffa5dada00fdb
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=2280f1af79307b945e250f78586ffa5dada00fdb
Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date: Fri Jul 7 23:54:00 2006 +0900
winex11.drv: Protect X11 calls by a critical section.
---
dlls/winex11.drv/event.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/winex11.drv/event.c b/dlls/winex11.drv/event.c
index aa9c1d6..92300c5 100644
--- a/dlls/winex11.drv/event.c
+++ b/dlls/winex11.drv/event.c
@@ -453,8 +453,10 @@ static void handle_wm_protocols( HWND hw
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");
}
More information about the wine-cvs
mailing list