Skip to content

Commit 35e601b

Browse files
committed
grabs/moving: cleanup drag in tiling layer if window doesn't exist
1 parent a74c90f commit 35e601b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/shell/grabs/moving.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,7 @@ impl Drop for MoveGrab {
783783
let previous = self.previous.clone();
784784
let window = self.window.clone();
785785
let is_touch_grab = matches!(self.start_data, GrabStartData::Touch(_));
786+
let cursor_output = self.cursor_output.clone();
786787

787788
let _ = self.evlh.0.insert_idle(move |state| {
788789
let position: Option<(CosmicMapped, Point<i32, Global>)> = if let Some(grab_state) =
@@ -886,6 +887,14 @@ impl Drop for MoveGrab {
886887
}
887888
}
888889
} else {
890+
let mut shell = state.common.shell.write();
891+
shell
892+
.workspaces
893+
.active_mut(&cursor_output)
894+
.unwrap()
895+
.tiling_layer
896+
.cleanup_drag();
897+
shell.set_overview_mode(None, state.common.event_loop_handle.clone());
889898
None
890899
}
891900
} else {

0 commit comments

Comments
 (0)