Skip to content

Commit

Permalink
WindowManager: Fix cancelling window move gesture (#2214)
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 authored Jan 11, 2025
1 parent f186305 commit 9b0b4e0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/WindowManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -2145,7 +2145,14 @@ namespace Gala {
unowned Meta.Display display = get_display ();
unowned var active_workspace = display.get_workspace_manager ().get_active_workspace ();
unowned var neighbor = active_workspace.get_neighbor (cancel_direction);
neighbor.activate (display.get_current_time ());

if (moving != null) {
move_window (moving, neighbor, Meta.CURRENT_TIME);
} else {
neighbor.activate (display.get_current_time ());
}
} else {
moving = null;
}
}

Expand Down Expand Up @@ -2207,7 +2214,6 @@ namespace Gala {

windows = null;
parents = null;
moving = null;

out_group = null;
in_group = null;
Expand Down

0 comments on commit 9b0b4e0

Please sign in to comment.