Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash when using move to workspace gestures #2211

Merged
merged 2 commits into from
Jan 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading