display: Ignore events from slave devices

Mutter only handles master devices.
This commit is contained in:
Carlos Garnacho 2011-07-09 18:45:35 +02:00
parent f5334dd6cf
commit d482dbcd16

View File

@ -1785,6 +1785,13 @@ event_callback (XEvent *event,
} }
device = meta_input_event_get_device (display, 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); grab_info = meta_display_get_grab_info (display, device);
switch (evtype) switch (evtype)