Protect X11 calls by a critical section
Dmitry Timoshkov
dmitry at codeweavers.com
Fri Jul 7 09:54:00 CDT 2006
Hello,
Changelog:
Protect X11 calls by a critical section.
--- cvs/hq/wine/dlls/winex11.drv/event.c Fri Jul 07 14:40:14 2006
+++ wine/dlls/winex11.drv/event.c Fri Jul 07 14:51:38 2006
@@ -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-patches
mailing list