module/i3: workspace::focus is apparently Sway only

On i3, users are currently greeted with:

  err: modules/i3.c:94: workspace reply/event without 'name' and/or
       'output', and/or 'focus' properties

This patch makes ‘focus’ an optional attribute. When missing, we
assume a node-count of 0, which means the workspace’s ‘empty’ tag will
always be true. Document this in the i3 man page.
This commit is contained in:
Daniel Eklöf 2022-02-15 21:14:08 +01:00
parent 1ce108f24e
commit c44970717b
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 18 additions and 7 deletions

View file

@ -37,7 +37,7 @@ with the _application_ and _title_ tags to replace the X11-only
: True if the workspace has the urgent flag set
| empty
: bool
: True if the workspace is empty
: True if the workspace is empty (Sway only)
| state
: string
: One of *urgent*, *focused*, *unfocused* or *invisible* (note: