#4768 Expand scope of X display lock in getCurrentTime()
This commit is contained in:
parent
e4b61cd881
commit
7d11004575
|
@ -1429,10 +1429,10 @@ XWindowsUtil::setWindowProperty(Display* display, Window window,
|
||||||
Time
|
Time
|
||||||
XWindowsUtil::getCurrentTime(Display* display, Window window)
|
XWindowsUtil::getCurrentTime(Display* display, Window window)
|
||||||
{
|
{
|
||||||
|
XLockDisplay(display);
|
||||||
// select property events on window
|
// select property events on window
|
||||||
XWindowAttributes attr;
|
XWindowAttributes attr;
|
||||||
XGetWindowAttributes(display, window, &attr);
|
XGetWindowAttributes(display, window, &attr);
|
||||||
XLockDisplay(display);
|
|
||||||
XSelectInput(display, window, attr.your_event_mask | PropertyChangeMask);
|
XSelectInput(display, window, attr.your_event_mask | PropertyChangeMask);
|
||||||
|
|
||||||
// make a property name to receive dummy change
|
// make a property name to receive dummy change
|
||||||
|
|
Loading…
Reference in New Issue