forked from mirror/dwl
refocus old client
When a layer surface is destroyed focus should be returned to the last client. Luckily if there are multiple overlays the previous overlay still gets focused.
This commit is contained in:
parent
4341deae8f
commit
068352e888
1 changed files with 1 additions and 3 deletions
4
dwl.c
4
dwl.c
|
@ -2092,9 +2092,7 @@ unmaplayersurface(LayerSurface *layersurface)
|
||||||
{
|
{
|
||||||
if (layersurface->layer_surface->surface ==
|
if (layersurface->layer_surface->surface ==
|
||||||
seat->keyboard_state.focused_surface)
|
seat->keyboard_state.focused_surface)
|
||||||
wlr_seat_keyboard_notify_clear_focus(seat);
|
focusclient(NULL, selclient(), 1);
|
||||||
|
|
||||||
/* XXX recheck keyboard focus */
|
|
||||||
motionnotify(0); // XXX why doesn't this work?
|
motionnotify(0); // XXX why doesn't this work?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue