Include workspace con in workspace event
Send the affected workspace in the "current" property for each workspace event for any type of workspace event that affects a particular workspace. fixes #1411
This commit is contained in:
committed by
Michael Stapelberg
parent
04fa40d3e5
commit
823b46a544
17
docs/ipc
17
docs/ipc
@ -668,15 +668,16 @@ 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"). A +current (object)+ property will be present with the
|
||||
affected workspace whenever the type of event affects a workspace (otherwise,
|
||||
it will be +null).
|
||||
|
||||
Moreover, when the change is "focus", an +old (object)+ and a +current
|
||||
(object)+ properties will be present with the previous and current
|
||||
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.
|
||||
When the change is "focus", an +old (object)+ property will be present with the
|
||||
previous workspace. 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:*
|
||||
---------------------
|
||||
|
Reference in New Issue
Block a user