mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-08 21:03:54 +08:00
Disable key event capture on X11. This was going to be used to
detect synergy hotkeys but a design flaw in X11 makes it problematic with many applications. We'll have to fall back to the more traditional XGrabKey when the time comes.
This commit is contained in:
@@ -1313,8 +1313,7 @@ CXWindowsScreen::doSelectEvents(Window w) const
|
||||
// select events of interest. do this before querying the tree so
|
||||
// we'll get notifications of children created after the XQueryTree()
|
||||
// so we won't miss them.
|
||||
XSelectInput(m_display, w, KeyPressMask | KeyReleaseMask |
|
||||
PointerMotionMask | SubstructureNotifyMask);
|
||||
XSelectInput(m_display, w, PointerMotionMask | SubstructureNotifyMask);
|
||||
|
||||
// recurse on child windows
|
||||
Window rw, pw, *cw;
|
||||
|
||||
Reference in New Issue
Block a user