diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-09-04 22:37:03 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-09-05 18:01:43 +1000 |
commit | 3cc7de3fb4e0ae9368a2daf1ed4f94bb13c51752 (patch) | |
tree | 980aace11fdea8bde326899f924fdb700d648c38 /sway/tree/view.c | |
parent | e5c9204b491cc252baad97acde6a232fded7ee5a (diff) |
Fix crash when view in scratchpad becomes urgent
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) { |