mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-11 14:15:46 +08:00
CXWindowsUtil::CErrorLock wasn't XSync()'ing the display before
installing and uninstalling the new error handler, causing errors before the lock to be caught and errors during the lock to not be caught. had to add Display* as argument to c'tor.
This commit is contained in:
@@ -617,7 +617,7 @@ CXWindowsPrimaryScreen::selectEvents(Display* display, Window w) const
|
||||
// ignore errors while we adjust event masks. windows could be
|
||||
// destroyed at any time after the XQueryTree() in doSelectEvents()
|
||||
// so we must ignore BadWindow errors.
|
||||
CXWindowsUtil::CErrorLock lock;
|
||||
CXWindowsUtil::CErrorLock lock(display);
|
||||
|
||||
// adjust event masks
|
||||
doSelectEvents(display, w);
|
||||
|
||||
Reference in New Issue
Block a user