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:
Sascha Kruse 2013-03-08 17:19:56 +01:00
parent f947bc71d4
commit 2ee38ca961

6
x.c
View File

@ -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);
}
} }
/* /*