window-switcher: add age order to window cycling

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

- Document cycle windows behavior with new option `order` in
  `<windowSwitcher>`
This commit is contained in:
Maik Broemme 2025-12-04 16:51:40 +01:00
parent 06505d24c8
commit 9962f44d55
No known key found for this signature in database
GPG key ID: 27BE1125704B8B02
9 changed files with 63 additions and 2 deletions

View file

@ -185,6 +185,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,

View file

@ -188,6 +188,7 @@ struct server {
struct wl_listener xdg_toplevel_icon_set_icon;
struct wl_list views;
uint64_t next_view_creation_iid;
struct wl_list unmanaged_surfaces;
struct seat seat;

View file

@ -174,6 +174,7 @@ struct view {
bool mapped;
bool been_mapped;
uint64_t creation_iid;
enum lab_ssd_mode ssd_mode;
enum ssd_preference ssd_preference;
bool shaded;