winex11.drv: Protect X11 calls by a critical section.

This commit is contained in:
Dmitry Timoshkov 2006-07-07 23:54:00 +09:00 committed by Alexandre Julliard
parent 19e7fab981
commit 2280f1af79
1 changed files with 2 additions and 0 deletions

View File

@ -453,8 +453,10 @@ static void handle_wm_protocols( HWND hwnd, XClientMessageEvent *event )
xev = *event; xev = *event;
TRACE("NET_WM Ping\n"); TRACE("NET_WM Ping\n");
wine_tsx11_lock();
xev.window = DefaultRootWindow(xev.display); xev.window = DefaultRootWindow(xev.display);
XSendEvent(xev.display, xev.window, False, SubstructureRedirectMask | SubstructureNotifyMask, (XEvent*)&xev); XSendEvent(xev.display, xev.window, False, SubstructureRedirectMask | SubstructureNotifyMask, (XEvent*)&xev);
wine_tsx11_unlock();
/* this line is semi-stolen from gtk2 */ /* this line is semi-stolen from gtk2 */
TRACE("NET_WM Pong\n"); TRACE("NET_WM Pong\n");
} }