shell: Don't move group to tiled layer of floating-only workspace

This commit is contained in:
Victoria Brekenfeld 2025-03-26 18:23:42 +01:00 committed by Victoria Brekenfeld
parent 7a8577592d
commit 9ee701ee64

View file

@ -2750,6 +2750,21 @@ impl Shell {
);
from_workspace.refresh_focus_stack();
to_workspace.refresh_focus_stack();
if !to_workspace.tiling_enabled {
to_workspace.tiling_enabled = true;
for mapped in to_workspace
.tiling_layer
.mapped()
.map(|(mapped, _)| mapped.clone())
.collect::<Vec<_>>()
.into_iter()
{
to_workspace.toggle_floating_window(&seat, &mapped);
}
to_workspace.tiling_enabled = false;
}
return Ok(res.zip(new_pos));
}
}