action: support NextWindow option window="root|all"

This enables all windows, not just topmost (root) ones, to be included in
the window-switcher. This is helpful when cycling through Gtk applications
with open dialogs because although these child windows will always be
shown on top of their parents, they do not get keyboard focus with the
default configuration.

This also applices to `PreviousWindow`.

Fixes: #3332
Suggested-by: @airtower-luna
This commit is contained in:
Johan Malm 2026-01-24 14:26:30 +00:00
parent 645a7b56ce
commit ff94591578
5 changed files with 29 additions and 4 deletions

View file

@ -133,4 +133,9 @@ enum cycle_app_id_filter {
CYCLE_APP_ID_CURRENT,
};
enum cycle_window_filter {
CYCLE_WINDOW_ROOT,
CYCLE_WINDOW_ALL,
};
#endif /* LABWC_CONFIG_TYPES_H */

View file

@ -49,6 +49,7 @@ struct cycle_filter {
enum cycle_workspace_filter workspace;
enum cycle_output_filter output;
enum cycle_app_id_filter app_id;
enum cycle_window_filter window;
};
struct cycle_state {