better docs for the focus workspace ipc event

This commit is contained in:
Francesco Mazzoli 2012-11-03 11:17:32 +00:00 committed by Michael Stapelberg
parent 1055973f66
commit 16c8832a7b
1 changed files with 9 additions and 5 deletions

View File

@ -644,11 +644,15 @@ if ($is_event) {
This event consists of a single serialized map containing a property This event consists of a single serialized map containing a property
+change (string)+ which indicates the type of the change ("focus", "init", +change (string)+ which indicates the type of the change ("focus", "init",
"empty", "urgent"). Additionally, when the change is "focus", an +old "empty", "urgent").
(object)+ and a +current (object)+ properties will be present with the
previous and current workspace respectively. When the first switch Moreover, when the change is "focus", an +old (object)+ and a +current
occurs (when i3 focuses the workspace visible at the beginning) there is (object)+ properties will be present with the previous and current
no previous workspace, and the +old+ property will be set to +null+. workspace respectively. When the first switch occurs (when i3 focuses
the workspace visible at the beginning) there is no previous
workspace, and the +old+ property will be set to +null+. Also note
that if the previous is empty it will get destroyed when switching,
but will still be present in the "old" property.
*Example:* *Example:*
--------------------- ---------------------