From a607eae53a3b31ede9cd59b487b96c487c63e126 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 19 Mar 2010 22:01:21 +0100 Subject: [PATCH] ipc: include the urgent flag in the workspaces reply --- docs/ipc | 4 ++++ src/ipc.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/docs/ipc b/docs/ipc index fc3f1939..383bde50 100644 --- a/docs/ipc +++ b/docs/ipc @@ -124,6 +124,8 @@ visible (boolean):: focused (boolean):: Whether this workspace currently has the focus (only one workspace can have the focus at the same time). +urgent (boolean):: + Whether a window on this workspace has the "urgent" flag set. rect (map):: The rectangle of this workspace (equals the rect of the output it is on), consists of x, y, width, height. @@ -138,6 +140,7 @@ output (string):: "name": "1", "visible": true, "focused": true, + "urgent": false, "rect": { "x": 0, "y": 0, @@ -151,6 +154,7 @@ output (string):: "name": "2", "visible": false, "focused": false, + "urgent": false, "rect": { "x": 0, "y": 0, diff --git a/src/ipc.c b/src/ipc.c index f2dfd1f6..1b9bf6e0 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -185,6 +185,9 @@ IPC_HANDLER(get_workspaces) { ystr("output"); ystr(ws->output->name); + ystr("urgent"); + y(bool, ws->urgent); + y(map_close); } -- 2.39.5