break change: remove useless option adaptive_sync

This commit is contained in:
DreamMaoMao 2026-01-27 16:20:45 +08:00
parent 6624d80522
commit 2e6e23633e
2 changed files with 0 additions and 6 deletions

View file

@ -346,7 +346,6 @@ typedef struct {
int32_t single_scratchpad; int32_t single_scratchpad;
int32_t xwayland_persistence; int32_t xwayland_persistence;
int32_t syncobj_enable; int32_t syncobj_enable;
int32_t adaptive_sync;
int32_t allow_tearing; int32_t allow_tearing;
int32_t allow_shortcuts_inhibit; int32_t allow_shortcuts_inhibit;
int32_t allow_lock_transparent; int32_t allow_lock_transparent;
@ -1278,8 +1277,6 @@ void parse_option(Config *config, char *key, char *value) {
config->xwayland_persistence = atoi(value); config->xwayland_persistence = atoi(value);
} else if (strcmp(key, "syncobj_enable") == 0) { } else if (strcmp(key, "syncobj_enable") == 0) {
config->syncobj_enable = atoi(value); config->syncobj_enable = atoi(value);
} else if (strcmp(key, "adaptive_sync") == 0) {
config->adaptive_sync = atoi(value);
} else if (strcmp(key, "allow_tearing") == 0) { } else if (strcmp(key, "allow_tearing") == 0) {
config->allow_tearing = atoi(value); config->allow_tearing = atoi(value);
} else if (strcmp(key, "allow_shortcuts_inhibit") == 0) { } else if (strcmp(key, "allow_shortcuts_inhibit") == 0) {
@ -2750,7 +2747,6 @@ void override_config(void) {
// 杂项设置 // 杂项设置
xwayland_persistence = CLAMP_INT(config.xwayland_persistence, 0, 1); xwayland_persistence = CLAMP_INT(config.xwayland_persistence, 0, 1);
syncobj_enable = CLAMP_INT(config.syncobj_enable, 0, 1); syncobj_enable = CLAMP_INT(config.syncobj_enable, 0, 1);
adaptive_sync = CLAMP_INT(config.adaptive_sync, 0, 1);
allow_tearing = CLAMP_INT(config.allow_tearing, 0, 2); allow_tearing = CLAMP_INT(config.allow_tearing, 0, 2);
allow_shortcuts_inhibit = CLAMP_INT(config.allow_shortcuts_inhibit, 0, 1); allow_shortcuts_inhibit = CLAMP_INT(config.allow_shortcuts_inhibit, 0, 1);
allow_lock_transparent = CLAMP_INT(config.allow_lock_transparent, 0, 1); allow_lock_transparent = CLAMP_INT(config.allow_lock_transparent, 0, 1);
@ -2937,7 +2933,6 @@ void set_value_default() {
config.single_scratchpad = single_scratchpad; config.single_scratchpad = single_scratchpad;
config.xwayland_persistence = xwayland_persistence; config.xwayland_persistence = xwayland_persistence;
config.syncobj_enable = syncobj_enable; config.syncobj_enable = syncobj_enable;
config.adaptive_sync = adaptive_sync;
config.allow_tearing = allow_tearing; config.allow_tearing = allow_tearing;
config.allow_shortcuts_inhibit = allow_shortcuts_inhibit; config.allow_shortcuts_inhibit = allow_shortcuts_inhibit;
config.allow_lock_transparent = allow_lock_transparent; config.allow_lock_transparent = allow_lock_transparent;

View file

@ -106,7 +106,6 @@ int32_t drag_corner = 3;
int32_t drag_warp_cursor = 1; int32_t drag_warp_cursor = 1;
int32_t xwayland_persistence = 1; /* xwayland persistence */ int32_t xwayland_persistence = 1; /* xwayland persistence */
int32_t syncobj_enable = 0; int32_t syncobj_enable = 0;
int32_t adaptive_sync = 0;
int32_t allow_lock_transparent = 0; int32_t allow_lock_transparent = 0;
double drag_refresh_interval = 16.0; double drag_refresh_interval = 16.0;
int32_t allow_tearing = TEARING_DISABLED; int32_t allow_tearing = TEARING_DISABLED;