ipc: include the urgent flag in the workspaces reply

This commit is contained in:
Michael Stapelberg 2010-03-19 22:01:21 +01:00
parent fdcbec248a
commit a607eae53a
2 changed files with 7 additions and 0 deletions

View File

@ -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,

View File

@ -185,6 +185,9 @@ IPC_HANDLER(get_workspaces) {
ystr("output");
ystr(ws->output->name);
ystr("urgent");
y(bool, ws->urgent);
y(map_close);
}