aboutsummaryrefslogtreecommitdiff
path: root/sway/tree
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-07-19 12:22:47 +0100
committerGitHub <noreply@github.com>2018-07-19 12:22:47 +0100
commiteecb3934016544b76741f2b1f4638dc0c2066b88 (patch)
treedd9e58923e6425aa8de4dc099f097de68d67ff5c /sway/tree
parent63d6233fcb601abd40f6c611aa4193766aaf9044 (diff)
parentcb4309b7cddaea9471254cb38fdede40db557f3f (diff)
downloadsway-eecb3934016544b76741f2b1f4638dc0c2066b88.tar.xz
Merge branch 'master' into xwayland-set-hints
Diffstat (limited to 'sway/tree')
-rw-r--r--sway/tree/layout.c4
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);
+ }
}
}