From 570e6e2c2763bc3a7bd270a9571cfedeb1083fef Mon Sep 17 00:00:00 2001 From: Leonardo Hernández Hernández Date: Sun, 18 Sep 2022 16:50:29 -0500 Subject: fix clients not being focused after destroy a layer surface --- dwl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dwl.c b/dwl.c index 36d3327..a64f4e7 100644 --- a/dwl.c +++ b/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); -- cgit v1.2.3