diff --git a/cmd/wm/layout.c b/cmd/wm/layout.c index 14919d71..46bb0e0e 100644 --- a/cmd/wm/layout.c +++ b/cmd/wm/layout.c @@ -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]); }