fix clients not being focused after destroy a layer surface

このコミットが含まれているのは:
Leonardo Hernández Hernández 2022-09-18 16:50:29 -05:00
コミット 570e6e2c27
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: E538897EE11B9624
1個のファイルの変更2行の追加2行の削除

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);