mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
winex11.drv: Protect X11 calls by a critical section.
This commit is contained in:
parent
19e7fab981
commit
2280f1af79
1 changed files with 2 additions and 0 deletions
|
@ -453,8 +453,10 @@ static void handle_wm_protocols( HWND hwnd, XClientMessageEvent *event )
|
|||
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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue