more informative `workspace' events

Add a `current' and `old' properties to the `focus' change type,
containing the current and old workspace respectively.  These additions
are not necessary anywhere else because `focus' is always triggered when
changing ws.
This commit is contained in:
Francesco Mazzoli
2012-11-03 11:17:29 +00:00
committed by Michael Stapelberg
parent b67eedf71a
commit 74d596e0fc
2 changed files with 48 additions and 3 deletions

View File

@ -644,11 +644,25 @@ if ($is_event) {
This event consists of a single serialized map containing a property
+change (string)+ which indicates the type of the change ("focus", "init",
"empty", "urgent").
"empty", "urgent"). Additionally, when the change is "focus", an +old
(object)+ and a +current (object)+ properties will be present with the
previous and current workspace respectively.
*Example:*
---------------------
{ "change": "focus" }
{
"change": "focus",
"current": {
"id": 28489712,
"type":4,
...
}
"old": {
"id": 28489715,
"type": 4,
...
}
}
---------------------
=== output event