diff --git a/src/core/display.c b/src/core/display.c index 69c58df14..6445d0757 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -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)