[mutter] screen: Don't select for key and motion events on the root window
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] screen: Don't select for key and motion events on the root window
- Date: Tue, 15 Jul 2014 21:18:57 +0000 (UTC)
commit 12c1a06e6087f4e8478ef17988ecd75f079cd240
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue Jul 15 16:26:31 2014 -0400
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 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/src/core/screen.c b/src/core/screen.c
index 631c597..fdf4a02 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))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]