aboutsummaryrefslogtreecommitdiffstats
path: root/src/api
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2015-07-22 08:15:00 +0200
committertomaka <pierre.krieger1708@gmail.com>2015-07-22 08:15:00 +0200
commit8577a25d21435952ac7cf3597530217bce2f1cb5 (patch)
tree195900abcc6c5e33ac78d0cf6578bee9203af58c /src/api
parent04a651320ba00571a0b2af9ae25c6d6c696c2803 (diff)
parent602a737440ae050e7725cb7c1f2dd31e97bf70e0 (diff)
downloadglutin-8577a25d21435952ac7cf3597530217bce2f1cb5.tar.gz
glutin-8577a25d21435952ac7cf3597530217bce2f1cb5.zip
Merge pull request #535 from robertknight/x11_duplicated_mouse_events
Only listen for mouse events from master devices
Diffstat (limited to 'src/api')
-rw-r--r--src/api/x11/input.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/x11/input.rs b/src/api/x11/input.rs
index 25add95..34ba33a 100644
--- a/src/api/x11/input.rs
+++ b/src/api/x11/input.rs
@@ -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()
};