mirror of
https://github.com/0intro/wmii
synced 2024-11-22 22:02:30 +03:00
Switch from RevertToParent to RevertToPointerRoot to fix focus issues with multiple X screens.
This commit is contained in:
parent
dffc0f4d93
commit
97dfe7839c
@ -337,16 +337,16 @@ focus_client(Client *c) {
|
||||
Dprint("\t%s => %s\n", clientname(screen->focus), clientname(c));
|
||||
|
||||
if(c)
|
||||
setfocus(&c->w, RevertToParent);
|
||||
setfocus(&c->w, RevertToPointerRoot);
|
||||
else
|
||||
setfocus(screen->barwin, RevertToParent);
|
||||
setfocus(screen->barwin, RevertToPointerRoot);
|
||||
|
||||
write_event("ClientFocus %C\n", c);
|
||||
|
||||
XSync(display, False);
|
||||
flushevents(FocusChangeMask, True);
|
||||
} else if(c && c->noinput) {
|
||||
setfocus(nil, RevertToParent);
|
||||
setfocus(nil, RevertToPointerRoot);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -135,7 +135,7 @@ focusin(XEvent *e) {
|
||||
if(ev->detail == NotifyDetailNone) {
|
||||
print_focus(&c_magic, "<magic[none]>");
|
||||
screen->focus = &c_magic;
|
||||
setfocus(screen->barwin, RevertToParent);
|
||||
setfocus(screen->barwin, RevertToPointerRoot);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user