From 3cc7de3fb4e0ae9368a2daf1ed4f94bb13c51752 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Tue, 4 Sep 2018 22:37:03 +1000 Subject: Fix crash when view in scratchpad becomes urgent --- sway/tree/view.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sway/tree/view.c') diff --git a/sway/tree/view.c b/sway/tree/view.c index 57851b16..e2d74735 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -1028,7 +1028,9 @@ void view_set_urgent(struct sway_view *view, bool enable) { ipc_event_window(view->container, "urgent"); - workspace_detect_urgent(view->container->workspace); + if (view->container->workspace) { + workspace_detect_urgent(view->container->workspace); + } } bool view_is_urgent(struct sway_view *view) { -- cgit v1.2.3