File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments