fix crash when setting urgency on an hidden scratchpad container

This commit is contained in:
bretello 2024-06-27 15:41:48 +02:00 committed by Alexander Orzechowski
parent fce8de0f67
commit 74cc02d60f

View File

@ -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);
}
}