mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-26 19:26:32 +00:00
fix clients not being focused after destroy a layer surface
This commit is contained in:
parent
a1b33826cf
commit
570e6e2c27
1 changed files with 2 additions and 2 deletions
4
dwl.c
4
dwl.c
|
@ -2340,11 +2340,11 @@ unmaplayersurfacenotify(struct wl_listener *listener, void *data)
|
|||
|
||||
layersurface->mapped = 0;
|
||||
wlr_scene_node_set_enabled(layersurface->scene, 0);
|
||||
if (layersurface == exclusive_focus)
|
||||
exclusive_focus = NULL;
|
||||
if (layersurface->layer_surface->output
|
||||
&& (layersurface->mon = layersurface->layer_surface->output->data))
|
||||
arrangelayers(layersurface->mon);
|
||||
if (layersurface == exclusive_focus)
|
||||
exclusive_focus = NULL;
|
||||
if (layersurface->layer_surface->surface ==
|
||||
seat->keyboard_state.focused_surface)
|
||||
focusclient(selclient(), 1);
|
||||
|
|
Loading…
Reference in a new issue