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):: focused (boolean)::
Whether this workspace currently has the focus (only one workspace Whether this workspace currently has the focus (only one workspace
can have the focus at the same time). can have the focus at the same time).
urgent (boolean)::
Whether a window on this workspace has the "urgent" flag set.
rect (map):: rect (map)::
The rectangle of this workspace (equals the rect of the output it The rectangle of this workspace (equals the rect of the output it
is on), consists of x, y, width, height. is on), consists of x, y, width, height.
@ -138,6 +140,7 @@ output (string)::
"name": "1", "name": "1",
"visible": true, "visible": true,
"focused": true, "focused": true,
"urgent": false,
"rect": { "rect": {
"x": 0, "x": 0,
"y": 0, "y": 0,
@ -151,6 +154,7 @@ output (string)::
"name": "2", "name": "2",
"visible": false, "visible": false,
"focused": false, "focused": false,
"urgent": false,
"rect": { "rect": {
"x": 0, "x": 0,
"y": 0, "y": 0,

View File

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