Module: wine Branch: refs/heads/master Commit: 2280f1af79307b945e250f78586ffa5dada00fdb URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=2280f1af79307b945e250f78...
Author: Dmitry Timoshkov dmitry@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"); }