winex11.drv: Protect X11 calls by a critical section.
This commit is contained in:
parent
19e7fab981
commit
2280f1af79
|
@ -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");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue