osd: optionally show windows on all workspaces

Also share common config option (rc.window_switcher.criteria) in osd.c and
desktop.c to make sure the window lists are always consistent.

Configure with `<windowSwitcher allWorkspaces="yes|no">`
This commit is contained in:
Johan Malm 2024-03-03 20:03:32 +00:00
parent aafc93a6db
commit 6052d65478
6 changed files with 19 additions and 21 deletions

View file

@ -166,7 +166,7 @@ this is for compatibility with Openbox.
## WINDOW SWITCHER
*<windowSwitcher show="" preview="" outlines="">*
*<windowSwitcher show="" preview="" outlines="" allWorkspaces="">*
*show* [yes|no] Draw the OnScreenDisplay when switching between
windows. Default is yes.
@ -176,6 +176,10 @@ this is for compatibility with Openbox.
*outlines* [yes|no] Draw an outline around the selected window when
switching between windows. Default is yes.
*allWorkspaces* [yes|no] Show windows regardless of what workspace
they are on. Default no (that is only windows on the current workspace
are shown).
*<windowSwitcher><fields><field content="" width="%">*
Define window switcher fields.