diff options
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r-- | sway/tree/view.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) { |