mirror of https://github.com/0intro/wmii
Fix "last focussed window retains focus when switching to an empty page" bug
This commit is contained in:
parent
b6359f75d6
commit
aaad685adb
|
@ -58,6 +58,8 @@ focus_layout(Layout *l)
|
|||
p->file[P_SEL_LAYOUT]->content = l->file[L_PREFIX]->content;
|
||||
if((c = l->def->sel(l)))
|
||||
l->def->focus(l, c, False);
|
||||
else
|
||||
XSetInputFocus(dpy, PointerRoot, RevertToPointerRoot, CurrentTime);
|
||||
invoke_wm_event(def[WM_EVENT_PAGE_UPDATE]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue