aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-09-04 22:37:03 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-09-05 18:01:43 +1000
commit3cc7de3fb4e0ae9368a2daf1ed4f94bb13c51752 (patch)
tree980aace11fdea8bde326899f924fdb700d648c38 /sway/tree/view.c
parentFocus empty workspace when clicking it (diff)
downloadsway-3cc7de3fb4e0ae9368a2daf1ed4f94bb13c51752.tar.gz
sway-3cc7de3fb4e0ae9368a2daf1ed4f94bb13c51752.tar.zst
sway-3cc7de3fb4e0ae9368a2daf1ed4f94bb13c51752.zip
Fix crash when view in scratchpad becomes urgent
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r--sway/tree/view.c4
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) {
1028 1028
1029 ipc_event_window(view->container, "urgent"); 1029 ipc_event_window(view->container, "urgent");
1030 1030
1031 workspace_detect_urgent(view->container->workspace); 1031 if (view->container->workspace) {
1032 workspace_detect_urgent(view->container->workspace);
1033 }
1032} 1034}
1033 1035
1034bool view_is_urgent(struct sway_view *view) { 1036bool view_is_urgent(struct sway_view *view) {