mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
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.
This commit is contained in:
parent
b11405570a
commit
12c1a06e60
@ -626,13 +626,10 @@ meta_screen_new (MetaDisplay *display,
|
|||||||
unsigned char mask_bits[XIMaskLen (XI_LASTEVENT)] = { 0 };
|
unsigned char mask_bits[XIMaskLen (XI_LASTEVENT)] = { 0 };
|
||||||
XIEventMask mask = { XIAllMasterDevices, sizeof (mask_bits), mask_bits };
|
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_Enter);
|
||||||
XISetMask (mask.mask, XI_Leave);
|
XISetMask (mask.mask, XI_Leave);
|
||||||
XISetMask (mask.mask, XI_FocusIn);
|
XISetMask (mask.mask, XI_FocusIn);
|
||||||
XISetMask (mask.mask, XI_FocusOut);
|
XISetMask (mask.mask, XI_FocusOut);
|
||||||
XISetMask (mask.mask, XI_Motion);
|
|
||||||
#ifdef HAVE_XI23
|
#ifdef HAVE_XI23
|
||||||
if (META_DISPLAY_HAS_XINPUT_23 (display))
|
if (META_DISPLAY_HAS_XINPUT_23 (display))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user