From 74cc02d60f221deeed800454ba3cf68a55001430 Mon Sep 17 00:00:00 2001 From: bretello Date: Thu, 27 Jun 2024 15:41:48 +0200 Subject: [PATCH] fix crash when setting urgency on an hidden scratchpad container --- sway/tree/view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/tree/view.c b/sway/tree/view.c index e9624094..086a8ff3 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -1185,7 +1185,7 @@ void view_set_urgent(struct sway_view *view, bool enable) { ipc_event_window(view->container, "urgent"); - if (!container_is_scratchpad_hidden(view->container)) { + if (!container_is_scratchpad_hidden_or_child(view->container)) { workspace_detect_urgent(view->container->pending.workspace); } }