shell: Don't move group to tiled layer of floating-only workspace
This commit is contained in:
parent
7a8577592d
commit
9ee701ee64
1 changed files with 15 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue