Skip to content

Commit

Permalink
Move to Workspace: Fix segmentation fault when focus_window is null (
Browse files Browse the repository at this point in the history
  • Loading branch information
lenemter authored Oct 27, 2023
1 parent 4e2b12b commit 84e2acd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/WindowManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,9 @@ namespace Gala {
var direction = gesture_tracker.settings.get_natural_scroll_direction (gesture);

moving = display.focus_window;
moving.change_workspace (manager.get_active_workspace ().get_neighbor (direction));
if (moving != null) {
moving.change_workspace (manager.get_active_workspace ().get_neighbor (direction));
}

switch_to_next_workspace (direction);
return;
Expand Down

0 comments on commit 84e2acd

Please sign in to comment.