RevertToPointerRoot is the worse error case, so use it always
This commit is contained in:
parent
4d65fe35ff
commit
0fcd4c30cc
1 changed files with 4 additions and 3 deletions
|
@ -1956,9 +1956,10 @@ gboolean client_focus(Client *self)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self->can_focus)
|
if (self->can_focus)
|
||||||
/* RevertToNone is used so that windows dont get focused inadvertantly
|
/* RevertToPointerRoot causes much more headache than TevertToNone, so
|
||||||
by having the pointer in them, and then FocusIn events go missing */
|
I choose to use it always, hopefully to find errors quicker, if any
|
||||||
XSetInputFocus(ob_display, self->window, RevertToNone,
|
are left. (I hate X. I hate focus events.) */
|
||||||
|
XSetInputFocus(ob_display, self->window, RevertToPointerRoot,
|
||||||
event_lasttime);
|
event_lasttime);
|
||||||
|
|
||||||
if (self->focus_notify) {
|
if (self->focus_notify) {
|
||||||
|
|
Loading…
Reference in a new issue