break change: inhibit_regardless_of_visibility rename to idleinhibit_ignore_visible

This commit is contained in:
DreamMaoMao
2025-12-19 14:40:32 +08:00
parent bce6c0498e
commit f54d7b3483
4 changed files with 10 additions and 10 deletions

View File

@@ -77,7 +77,7 @@ overviewgappo=30
no_border_when_single=0
axis_bind_apply_timeout=100
focus_on_activate=1
inhibit_regardless_of_visibility=0
idleinhibit_ignore_visible=0
sloppyfocus=1
warpcursor=1
focus_cross_monitor=0

View File

@@ -238,7 +238,7 @@ typedef struct {
uint32_t axis_bind_apply_timeout;
uint32_t focus_on_activate;
int inhibit_regardless_of_visibility;
int idleinhibit_ignore_visible;
int sloppyfocus;
int warpcursor;
@@ -1456,8 +1456,8 @@ void parse_option(Config *config, char *key, char *value) {
config->focus_on_activate = atoi(value);
} else if (strcmp(key, "numlockon") == 0) {
config->numlockon = atoi(value);
} else if (strcmp(key, "inhibit_regardless_of_visibility") == 0) {
config->inhibit_regardless_of_visibility = atoi(value);
} else if (strcmp(key, "idleinhibit_ignore_visible") == 0) {
config->idleinhibit_ignore_visible = atoi(value);
} else if (strcmp(key, "sloppyfocus") == 0) {
config->sloppyfocus = atoi(value);
} else if (strcmp(key, "warpcursor") == 0) {
@@ -2735,8 +2735,8 @@ void override_config(void) {
axis_bind_apply_timeout =
CLAMP_INT(config.axis_bind_apply_timeout, 0, 1000);
focus_on_activate = CLAMP_INT(config.focus_on_activate, 0, 1);
inhibit_regardless_of_visibility =
CLAMP_INT(config.inhibit_regardless_of_visibility, 0, 1);
idleinhibit_ignore_visible =
CLAMP_INT(config.idleinhibit_ignore_visible, 0, 1);
sloppyfocus = CLAMP_INT(config.sloppyfocus, 0, 1);
warpcursor = CLAMP_INT(config.warpcursor, 0, 1);
focus_cross_monitor = CLAMP_INT(config.focus_cross_monitor, 0, 1);
@@ -2922,8 +2922,8 @@ void set_value_default() {
config.enable_floating_snap = enable_floating_snap;
config.swipe_min_threshold = swipe_min_threshold;
config.inhibit_regardless_of_visibility =
inhibit_regardless_of_visibility; /* 1 means idle inhibitors will
config.idleinhibit_ignore_visible =
idleinhibit_ignore_visible; /* 1 means idle inhibitors will
disable idle tracking even if it's
surface isn't visible
*/

View File

@@ -80,7 +80,7 @@ uint32_t cursor_hide_timeout = 0;
uint32_t swipe_min_threshold = 1;
int inhibit_regardless_of_visibility =
int idleinhibit_ignore_visible =
0; /* 1 means idle inhibitors will disable idle tracking even if it's
surface isn't visible */
uint32_t borderpx = 4; /* border pixel of windows */

View File

@@ -2014,7 +2014,7 @@ void checkidleinhibitor(struct wlr_surface *exclude) {
toplevel_from_wlr_surface(inhibitor->surface, &c, NULL);
if (inhibit_regardless_of_visibility) {
if (idleinhibit_ignore_visible) {
inhibited = 1;
break;
}