Merge pull request #2306 from RyanDwyer/move-workspace-crash

Fix crash when moving workspace to output
This commit is contained in:
emersion 2018-07-19 08:24:34 +01:00 committed by GitHub
commit dfb45ded1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -232,7 +232,9 @@ void container_move_to(struct sway_container *container,
}
if (new_workspace != old_workspace) {
workspace_detect_urgent(new_workspace);
workspace_detect_urgent(old_workspace);
if (old_workspace) {
workspace_detect_urgent(old_workspace);
}
}
}