mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
Merge pull request #535 from robertknight/x11_duplicated_mouse_events
Only listen for mouse events from master devices
This commit is contained in:
commit
8577a25d21
|
@ -77,7 +77,7 @@ impl XInputEventHandler {
|
|||
// X11 events.
|
||||
let mut mask: [libc::c_uchar; 2] = [0, 0];
|
||||
let mut input_event_mask = ffi::XIEventMask {
|
||||
deviceid: ffi::XIAllDevices,
|
||||
deviceid: ffi::XIAllMasterDevices,
|
||||
mask_len: mask.len() as i32,
|
||||
mask: mask.as_mut_ptr()
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue