change: change option name bypass_surface_visibility to inhibit_regardless_of_visibility
This commit is contained in:
@@ -69,7 +69,7 @@ overviewgappo=30
|
|||||||
no_border_when_single=0
|
no_border_when_single=0
|
||||||
axis_bind_apply_timeout=100
|
axis_bind_apply_timeout=100
|
||||||
focus_on_activate=1
|
focus_on_activate=1
|
||||||
bypass_surface_visibility=0
|
inhibit_regardless_of_visibility=0
|
||||||
sloppyfocus=1
|
sloppyfocus=1
|
||||||
warpcursor=1
|
warpcursor=1
|
||||||
focus_cross_monitor=0
|
focus_cross_monitor=0
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ typedef struct {
|
|||||||
|
|
||||||
unsigned int axis_bind_apply_timeout;
|
unsigned int axis_bind_apply_timeout;
|
||||||
unsigned int focus_on_activate;
|
unsigned int focus_on_activate;
|
||||||
int bypass_surface_visibility;
|
int inhibit_regardless_of_visibility;
|
||||||
int sloppyfocus;
|
int sloppyfocus;
|
||||||
int warpcursor;
|
int warpcursor;
|
||||||
|
|
||||||
@@ -1132,8 +1132,8 @@ void parse_config_line(Config *config, const char *line) {
|
|||||||
config->focus_on_activate = atoi(value);
|
config->focus_on_activate = atoi(value);
|
||||||
} else if (strcmp(key, "numlockon") == 0) {
|
} else if (strcmp(key, "numlockon") == 0) {
|
||||||
config->numlockon = atoi(value);
|
config->numlockon = atoi(value);
|
||||||
} else if (strcmp(key, "bypass_surface_visibility") == 0) {
|
} else if (strcmp(key, "inhibit_regardless_of_visibility") == 0) {
|
||||||
config->bypass_surface_visibility = atoi(value);
|
config->inhibit_regardless_of_visibility = atoi(value);
|
||||||
} else if (strcmp(key, "sloppyfocus") == 0) {
|
} else if (strcmp(key, "sloppyfocus") == 0) {
|
||||||
config->sloppyfocus = atoi(value);
|
config->sloppyfocus = atoi(value);
|
||||||
} else if (strcmp(key, "warpcursor") == 0) {
|
} else if (strcmp(key, "warpcursor") == 0) {
|
||||||
@@ -2137,8 +2137,8 @@ void override_config(void) {
|
|||||||
axis_bind_apply_timeout =
|
axis_bind_apply_timeout =
|
||||||
CLAMP_INT(config.axis_bind_apply_timeout, 0, 1000);
|
CLAMP_INT(config.axis_bind_apply_timeout, 0, 1000);
|
||||||
focus_on_activate = CLAMP_INT(config.focus_on_activate, 0, 1);
|
focus_on_activate = CLAMP_INT(config.focus_on_activate, 0, 1);
|
||||||
bypass_surface_visibility =
|
inhibit_regardless_of_visibility =
|
||||||
CLAMP_INT(config.bypass_surface_visibility, 0, 1);
|
CLAMP_INT(config.inhibit_regardless_of_visibility, 0, 1);
|
||||||
sloppyfocus = CLAMP_INT(config.sloppyfocus, 0, 1);
|
sloppyfocus = CLAMP_INT(config.sloppyfocus, 0, 1);
|
||||||
warpcursor = CLAMP_INT(config.warpcursor, 0, 1);
|
warpcursor = CLAMP_INT(config.warpcursor, 0, 1);
|
||||||
focus_cross_monitor = CLAMP_INT(config.focus_cross_monitor, 0, 1);
|
focus_cross_monitor = CLAMP_INT(config.focus_cross_monitor, 0, 1);
|
||||||
@@ -2289,8 +2289,8 @@ void set_value_default() {
|
|||||||
config.enable_floating_snap = enable_floating_snap;
|
config.enable_floating_snap = enable_floating_snap;
|
||||||
config.swipe_min_threshold = swipe_min_threshold;
|
config.swipe_min_threshold = swipe_min_threshold;
|
||||||
|
|
||||||
config.bypass_surface_visibility =
|
config.inhibit_regardless_of_visibility =
|
||||||
bypass_surface_visibility; /* 1 means idle inhibitors will disable idle
|
inhibit_regardless_of_visibility; /* 1 means idle inhibitors will disable idle
|
||||||
tracking even if it's surface isn't
|
tracking even if it's surface isn't
|
||||||
visible
|
visible
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ unsigned int cursor_hide_timeout = 0;
|
|||||||
|
|
||||||
unsigned int swipe_min_threshold = 20;
|
unsigned int swipe_min_threshold = 20;
|
||||||
|
|
||||||
int bypass_surface_visibility =
|
int inhibit_regardless_of_visibility =
|
||||||
0; /* 1 means idle inhibitors will disable idle tracking even if it's
|
0; /* 1 means idle inhibitors will disable idle tracking even if it's
|
||||||
surface isn't visible */
|
surface isn't visible */
|
||||||
unsigned int borderpx = 4; /* border pixel of windows */
|
unsigned int borderpx = 4; /* border pixel of windows */
|
||||||
|
|||||||
@@ -2995,7 +2995,7 @@ void checkidleinhibitor(struct wlr_surface *exclude) {
|
|||||||
wlr_surface_get_root_surface(inhibitor->surface);
|
wlr_surface_get_root_surface(inhibitor->surface);
|
||||||
struct wlr_scene_tree *tree = surface->data;
|
struct wlr_scene_tree *tree = surface->data;
|
||||||
if (exclude != surface &&
|
if (exclude != surface &&
|
||||||
(bypass_surface_visibility ||
|
(inhibit_regardless_of_visibility ||
|
||||||
(!tree ||
|
(!tree ||
|
||||||
wlr_scene_node_coords(&tree->node, &unused_lx, &unused_ly)))) {
|
wlr_scene_node_coords(&tree->node, &unused_lx, &unused_ly)))) {
|
||||||
inhibited = 1;
|
inhibited = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user