Fix "last focussed window retains focus when switching to an empty page" bug

This commit is contained in:
sander 2006-01-20 23:57:23 +02:00
parent b6359f75d6
commit aaad685adb
1 changed files with 2 additions and 0 deletions

View File

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