screen: Don't make a round-trip to fetch a value we know to be empty

This commit is contained in:
Jasper St. Pierre 2014-07-14 09:32:13 -04:00
parent 39357fc242
commit 379bb0a77d

View File

@ -625,7 +625,6 @@ meta_screen_new (MetaDisplay *display,
long event_mask;
unsigned char mask_bits[XIMaskLen (XI_LASTEVENT)] = { 0 };
XIEventMask mask = { XIAllMasterDevices, sizeof (mask_bits), mask_bits };
XWindowAttributes attr;
XISetMask (mask.mask, XI_KeyPress);
XISetMask (mask.mask, XI_KeyRelease);
@ -645,9 +644,6 @@ meta_screen_new (MetaDisplay *display,
event_mask = (SubstructureRedirectMask | SubstructureNotifyMask |
StructureNotifyMask | ColormapChangeMask | PropertyChangeMask);
if (XGetWindowAttributes (xdisplay, xroot, &attr))
event_mask |= attr.your_event_mask;
XSelectInput (xdisplay, xroot, event_mask);
}