Skip to content

Commit

Permalink
tiling: Fix moving single stack surfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Sep 14, 2023
1 parent 973b360 commit 2a79221
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/shell/layout/tiling/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,9 @@ impl TilingLayout {
let Data::Mapped { mapped: this_mapped, .. } = node.data() else { return None };
let this_stack = this_mapped.stack_ref()?;
this_stack.remove_window(&stack_surface);
if !this_stack.alive() {
this.unmap(&this_mapped);
}

let mapped: CosmicMapped =
CosmicWindow::new(stack_surface, this_stack.loop_handle()).into();
Expand All @@ -660,7 +663,7 @@ impl TilingLayout {
}

mapped.set_tiled(true);
this.map(mapped.clone(), seat, focus_stack, None);
other.map(mapped.clone(), seat, focus_stack, None);
return Some(KeyboardFocusTarget::Element(mapped));
}
None => {
Expand Down

0 comments on commit 2a79221

Please sign in to comment.