mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 00:50:42 -05:00
display: Ignore events from slave devices
Mutter only handles master devices.
This commit is contained in:
parent
f5334dd6cf
commit
d482dbcd16
@ -1785,6 +1785,13 @@ event_callback (XEvent *event,
|
||||
}
|
||||
|
||||
device = meta_input_event_get_device (display, event);
|
||||
|
||||
/* Ignore unknown devices, most likely
|
||||
* slave devices we don't care about
|
||||
*/
|
||||
if (!device)
|
||||
return FALSE;
|
||||
|
||||
grab_info = meta_display_get_grab_info (display, device);
|
||||
|
||||
switch (evtype)
|
||||
|
Loading…
Reference in New Issue
Block a user