feat: carousel-like behaviour when swapping tags

This commit is contained in:
ernestoCruz05 2026-05-15 13:48:46 +01:00 committed by DreamMaoMao
parent 4be9e80355
commit 78f7ed6825
4 changed files with 57 additions and 19 deletions

View file

@ -322,6 +322,7 @@ typedef struct {
uint32_t gappoh;
uint32_t gappov;
uint32_t borderpx;
int32_t tag_carousel;
float scratchpad_width_ratio;
float scratchpad_height_ratio;
float rootcolor[4];
@ -1737,6 +1738,8 @@ bool parse_option(Config *config, char *key, char *value) {
config->scratchpad_height_ratio = atof(value);
} else if (strcmp(key, "borderpx") == 0) {
config->borderpx = atoi(value);
} else if (strcmp(key, "tag_carousel") == 0) {
config->tag_carousel = atoi(value);
} else if (strcmp(key, "rootcolor") == 0) {
int64_t color = parse_color(value);
if (color == -1) {
@ -3428,6 +3431,7 @@ void set_value_default() {
config.idleinhibit_ignore_visible = 0;
config.borderpx = 4;
config.tag_carousel = 0;
config.overviewgappi = 5;
config.overviewgappo = 30;
config.cursor_hide_timeout = 0;