Skip to content

Commit c0df85e

Browse files
authored
Merge branch 'main' into leolost/release-8-0-5
2 parents 1a35cb9 + 9b0b4e0 commit c0df85e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/WindowManager.vala

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2145,7 +2145,14 @@ namespace Gala {
21452145
unowned Meta.Display display = get_display ();
21462146
unowned var active_workspace = display.get_workspace_manager ().get_active_workspace ();
21472147
unowned var neighbor = active_workspace.get_neighbor (cancel_direction);
2148-
neighbor.activate (display.get_current_time ());
2148+
2149+
if (moving != null) {
2150+
move_window (moving, neighbor, Meta.CURRENT_TIME);
2151+
} else {
2152+
neighbor.activate (display.get_current_time ());
2153+
}
2154+
} else {
2155+
moving = null;
21492156
}
21502157
}
21512158

@@ -2207,7 +2214,6 @@ namespace Gala {
22072214

22082215
windows = null;
22092216
parents = null;
2210-
moving = null;
22112217

22122218
out_group = null;
22132219
in_group = null;

0 commit comments

Comments
 (0)