From: Michael Stapelberg Date: Fri, 19 Mar 2010 21:01:21 +0000 (+0100) Subject: ipc: include the urgent flag in the workspaces reply X-Git-Tag: 3.e~6^2~51 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a607eae53a3b31ede9cd59b487b96c487c63e126;p=i3%2Fi3 ipc: include the urgent flag in the workspaces reply --- 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); }