From dad3a8deee9019c023c970089b7853c501821f33 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Thu, 19 Jul 2018 16:52:02 +1000 Subject: [PATCH] Fix crash when moving workspace to output --- sway/tree/layout.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); + } } }