fix: disable active layer when a regular view is focused

This commit is contained in:
DanyLE
2025-06-14 13:07:59 +02:00
parent 8d84d04d9c
commit 964d22b22c

3
view.c
View File

@ -106,10 +106,13 @@ void diyac_focus_view(struct diyac_view *toplevel, bool raise)
wlr_log(WLR_DEBUG, "Don't re-focus an already focused surface");
return;
}
if (toplevel->server->active_view)
{
diyac_view_set_activated(toplevel->server->active_view, false);
}
// disable current active layer if any
toplevel->server->seat.focused_layer = NULL;
if (raise)
{
raise_all_views(toplevel);