mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 19:40:43 -05:00
screen: Don't make a round-trip to fetch a value we know to be empty
This commit is contained in:
parent
39357fc242
commit
379bb0a77d
@ -625,7 +625,6 @@ meta_screen_new (MetaDisplay *display,
|
|||||||
long event_mask;
|
long event_mask;
|
||||||
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 };
|
||||||
XWindowAttributes attr;
|
|
||||||
|
|
||||||
XISetMask (mask.mask, XI_KeyPress);
|
XISetMask (mask.mask, XI_KeyPress);
|
||||||
XISetMask (mask.mask, XI_KeyRelease);
|
XISetMask (mask.mask, XI_KeyRelease);
|
||||||
@ -645,9 +644,6 @@ meta_screen_new (MetaDisplay *display,
|
|||||||
|
|
||||||
event_mask = (SubstructureRedirectMask | SubstructureNotifyMask |
|
event_mask = (SubstructureRedirectMask | SubstructureNotifyMask |
|
||||||
StructureNotifyMask | ColormapChangeMask | PropertyChangeMask);
|
StructureNotifyMask | ColormapChangeMask | PropertyChangeMask);
|
||||||
if (XGetWindowAttributes (xdisplay, xroot, &attr))
|
|
||||||
event_mask |= attr.your_event_mask;
|
|
||||||
|
|
||||||
XSelectInput (xdisplay, xroot, event_mask);
|
XSelectInput (xdisplay, xroot, event_mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user