only FocusChangeMask|PropertyChangeMask if needed
We don't need to listen to the corresponding events when we don't need to follow the mouse/keyboard focus.
This commit is contained in:
parent
f947bc71d4
commit
2ee38ca961
6
x.c
6
x.c
@ -805,8 +805,10 @@ void x_win_setup(void)
|
|||||||
(unsigned long)((100 - settings.transparency) *
|
(unsigned long)((100 - settings.transparency) *
|
||||||
(0xffffffff / 100)));
|
(0xffffffff / 100)));
|
||||||
|
|
||||||
long root_event_mask = FocusChangeMask | PropertyChangeMask;
|
if (settings.f_mode != FOLLOW_NONE) {
|
||||||
XSelectInput(xctx.dpy, root, root_event_mask);
|
long root_event_mask = FocusChangeMask | PropertyChangeMask;
|
||||||
|
XSelectInput(xctx.dpy, root, root_event_mask);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user