Merge pull request #932 from ernestoCruz05/carousel

feat: carousel-like behaviour when swapping tags
This commit is contained in:
DreamMaoMao 2026-05-24 11:08:02 +08:00 committed by GitHub
commit 2a83505593
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 57 additions and 19 deletions

View file

@ -327,6 +327,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];
@ -1754,6 +1755,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) {
@ -3455,6 +3458,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;