Skip to content

Commit

Permalink
Merge pull request maroider#5 from mahkoh/virtual-on-virtual
Browse files Browse the repository at this point in the history
X11: Only fetch virtual keyboard events from master devices
  • Loading branch information
maroider authored Nov 17, 2021
2 parents c48a68e + efdece5 commit 03f12db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/platform_impl/linux/x11/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,7 @@ impl Device {
| ffi::XI_RawButtonPressMask
| ffi::XI_RawButtonReleaseMask
| ffi::XI_RawKeyPressMask
| ffi::XI_RawKeyReleaseMask
| ffi::XI_KeyPressMask
| ffi::XI_KeyReleaseMask;
| ffi::XI_RawKeyReleaseMask;
// The request buffer is flushed when we poll for events
wt.xconn
.select_xinput_events(wt.root, info.deviceid, mask)
Expand Down
4 changes: 2 additions & 2 deletions src/platform_impl/linux/x11/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ impl UnownedWindow {
let mask = ffi::XI_MotionMask
| ffi::XI_ButtonPressMask
| ffi::XI_ButtonReleaseMask
//| ffi::XI_KeyPressMask
//| ffi::XI_KeyReleaseMask
| ffi::XI_KeyPressMask
| ffi::XI_KeyReleaseMask
| ffi::XI_EnterMask
| ffi::XI_LeaveMask
| ffi::XI_FocusInMask
Expand Down

0 comments on commit 03f12db

Please sign in to comment.