diff options
Diffstat (limited to 'lib/libX11/src/locking.c')
-rw-r--r-- | lib/libX11/src/locking.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libX11/src/locking.c b/lib/libX11/src/locking.c index 4f9a40fbd..b3dfb3b01 100644 --- a/lib/libX11/src/locking.c +++ b/lib/libX11/src/locking.c @@ -486,6 +486,8 @@ static void _XInternalLockDisplay( static void _XUserLockDisplay( register Display* dpy) { + _XDisplayLockWait(dpy); + if (++dpy->lock->locking_level == 1) { dpy->lock->lock_wait = _XDisplayLockWait; dpy->lock->locking_thread = xthread_self(); |