Skip to content

Commit

Permalink
Fix crash when using move to workspace gestures (#2211)
Browse files Browse the repository at this point in the history
  • Loading branch information
lenemter authored Jan 5, 2025
1 parent 4c3dc32 commit 0d8893a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/WindowManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -592,12 +592,10 @@ namespace Gala {
case MOVE_TO_WORKSPACE:
unowned var display = get_display ();
unowned var manager = display.get_workspace_manager ();
unowned var active_workspace = manager.get_active_workspace ();
unowned var target_workspace = active_workspace.get_neighbor (direction);

moving = display.focus_window;
if (moving != null) {
moving.change_workspace (manager.get_active_workspace ().get_neighbor (direction));
}
switch_to_next_workspace (direction, timestamp);
move_window (display.focus_window, target_workspace, timestamp);
break;

case SWITCH_WORKSPACE:
Expand Down

0 comments on commit 0d8893a

Please sign in to comment.