mirror of
https://github.com/swaywm/sway.git
synced 2024-11-21 23:41:27 +00:00
fix crash when setting urgency on an hidden scratchpad container
This commit is contained in:
parent
fce8de0f67
commit
74cc02d60f
|
@ -1185,7 +1185,7 @@ void view_set_urgent(struct sway_view *view, bool enable) {
|
||||||
|
|
||||||
ipc_event_window(view->container, "urgent");
|
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);
|
workspace_detect_urgent(view->container->pending.workspace);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue