#4768 Expand scope of X display lock in getCurrentTime()

This commit is contained in:
Andrew Nelless 2016-09-05 16:19:13 +01:00
parent e4b61cd881
commit 7d11004575
1 changed files with 1 additions and 1 deletions

View File

@ -1429,10 +1429,10 @@ XWindowsUtil::setWindowProperty(Display* display, Window window,
Time
XWindowsUtil::getCurrentTime(Display* display, Window window)
{
XLockDisplay(display);
// select property events on window
XWindowAttributes attr;
XGetWindowAttributes(display, window, &attr);
XLockDisplay(display);
XSelectInput(display, window, attr.your_event_mask | PropertyChangeMask);
// make a property name to receive dummy change