From 12c1a06e6087f4e8478ef17988ecd75f079cd240 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 15 Jul 2014 16:26:31 -0400 Subject: [PATCH] screen: Don't select for key and motion events on the root window These aren't necessary, and we'll never see these events anyway, since we don't process input events on the frontend connection. --- src/core/screen.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/core/screen.c b/src/core/screen.c index 631c597cb..fdf4a0226 100644 --- a/src/core/screen.c +++ b/src/core/screen.c @@ -626,13 +626,10 @@ meta_screen_new (MetaDisplay *display, unsigned char mask_bits[XIMaskLen (XI_LASTEVENT)] = { 0 }; XIEventMask mask = { XIAllMasterDevices, sizeof (mask_bits), mask_bits }; - XISetMask (mask.mask, XI_KeyPress); - XISetMask (mask.mask, XI_KeyRelease); XISetMask (mask.mask, XI_Enter); XISetMask (mask.mask, XI_Leave); XISetMask (mask.mask, XI_FocusIn); XISetMask (mask.mask, XI_FocusOut); - XISetMask (mask.mask, XI_Motion); #ifdef HAVE_XI23 if (META_DISPLAY_HAS_XINPUT_23 (display)) {