Fix urgency IPC events

This commit is contained in:
Ryan Dwyer 2018-07-16 08:13:58 +10:00
parent 315d5311b2
commit f86087d78f
2 changed files with 6 additions and 1 deletions

View file

@ -1070,8 +1070,10 @@ void view_set_urgent(struct sway_view *view, bool enable) {
}
container_damage_whole(view->swayc);
ipc_event_window(view->swayc, "urgent");
struct sway_container *ws = container_parent(view->swayc, C_WORKSPACE);
ipc_event_workspace(ws, NULL, "urgent");
ipc_event_workspace(NULL, ws, "urgent");
}
bool view_is_urgent(struct sway_view *view) {