window-switcher: add order parameter to allow stable window list ordering
Some checks failed
labwc.github.io / notify (push) Has been cancelled

Add a new configuration option to control the window switcher traversal order.

`order="focus"` cycling is convenient for quick toggling, but some users - me as well -
prefer a stable taskbar-like order which can now be achieved with `order="age"`.
This commit is contained in:
Maik Broemme 2025-12-08 18:54:23 +01:00 committed by GitHub
parent eecb5d0947
commit 8fdf375af3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 45 additions and 2 deletions

View file

@ -186,6 +186,7 @@ struct rcxml {
enum cycle_osd_style style;
enum cycle_osd_output_criteria output_criteria;
char *thumbnail_label_format;
enum window_switcher_order order;
} window_switcher;
struct wl_list window_rules; /* struct window_rule.link */

View file

@ -107,6 +107,11 @@ enum lab_window_type {
LAB_WINDOW_TYPE_LEN
};
enum window_switcher_order {
WINDOW_SWITCHER_ORDER_FOCUS,
WINDOW_SWITCHER_ORDER_AGE,
};
enum cycle_osd_style {
CYCLE_OSD_STYLE_CLASSIC,
CYCLE_OSD_STYLE_THUMBNAIL,