Merge pull request #535 from robertknight/x11_duplicated_mouse_events

Only listen for mouse events from master devices
This commit is contained in:
tomaka 2015-07-22 08:15:00 +02:00
commit 8577a25d21

View file

@ -77,7 +77,7 @@ impl XInputEventHandler {
// X11 events. // X11 events.
let mut mask: [libc::c_uchar; 2] = [0, 0]; let mut mask: [libc::c_uchar; 2] = [0, 0];
let mut input_event_mask = ffi::XIEventMask { let mut input_event_mask = ffi::XIEventMask {
deviceid: ffi::XIAllDevices, deviceid: ffi::XIAllMasterDevices,
mask_len: mask.len() as i32, mask_len: mask.len() as i32,
mask: mask.as_mut_ptr() mask: mask.as_mut_ptr()
}; };