diff options
author | emersion <contact@emersion.fr> | 2018-07-19 08:24:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-19 08:24:34 +0100 |
commit | dfb45ded1ca1c5f7ffb986510199ebf2376068b1 (patch) | |
tree | e3e72055d8df33245d15cd73366b82b8a4681b28 /sway | |
parent | 4931d0ddc5d9de1f823af7efd931702b2fa80260 (diff) | |
parent | dad3a8deee9019c023c970089b7853c501821f33 (diff) |
Merge pull request #2306 from RyanDwyer/move-workspace-crash
Fix crash when moving workspace to output
Diffstat (limited to 'sway')
-rw-r--r-- | sway/tree/layout.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c index 197a2fc8..1f898f8a 100644 --- a/sway/tree/layout.c +++ b/sway/tree/layout.c @@ -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); + } } } |