diff options
| author | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-09-18 16:50:29 -0500 | 
|---|---|---|
| committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-09-18 16:52:54 -0500 | 
| commit | 570e6e2c2763bc3a7bd270a9571cfedeb1083fef (patch) | |
| tree | db9c3e516ee3a159bd95f7e11bb4437b7992e658 /dwl.c | |
| parent | a1b33826cfeb9a6764428c44cfba7d26089b40be (diff) | |
fix clients not being focused after destroy a layer surface
Diffstat (limited to 'dwl.c')
| -rw-r--r-- | dwl.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| @@ -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); | 
