sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit f86087d78f25575ddadaa4d3496b34e62b545d2e
parent 315d5311b2004b9e148e7b52a7de161b6dfe3878
Author: Ryan Dwyer <ryandwyer1@gmail.com>
Date:   Mon, 16 Jul 2018 08:13:58 +1000

Fix urgency IPC events

Diffstat:
Msway/ipc-json.c | 3+++
Msway/tree/view.c | 4+++-
2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/sway/ipc-json.c b/sway/ipc-json.c @@ -197,6 +197,9 @@ static void ipc_json_describe_view(struct sway_container *c, json_object *object json_object_object_add(object, "layout", json_object_new_string(ipc_json_layout_description(c->layout))); } + + json_object_object_add(object, "urgent", + json_object_new_boolean(view_is_urgent(c->sway_view))); } static void focus_inactive_children_iterator(struct sway_container *c, void *data) { diff --git a/sway/tree/view.c b/sway/tree/view.c @@ -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) {