diff options
| author | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-11-30 18:51:35 -0600 | 
|---|---|---|
| committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-11-30 18:51:35 -0600 | 
| commit | 10c56d63489506ee852f3ec18f078e60ba1885f0 (patch) | |
| tree | 7b10faabdff3321a79748f5d1b03ddb2d5658b01 /dwl.c | |
| parent | c91d21b68f436bc61dfce8b3f47beb5855bdd1a2 (diff) | |
add option to allow invisible surfaces to disable idle tracking
Diffstat (limited to '')
| -rw-r--r-- | dwl.c | 5 | 
1 files changed, 3 insertions, 2 deletions
| @@ -597,8 +597,9 @@ checkidleinhibitor(struct wlr_surface *exclude)  	struct wlr_scene_tree *tree;  	struct wlr_idle_inhibitor_v1 *inhibitor;  	wl_list_for_each(inhibitor, &idle_inhibit_mgr->inhibitors, link) { -		if (exclude != inhibitor->surface && (tree = inhibitor->surface->data) -				&& tree->node.enabled) { +		if (bypass_surface_visibility || (exclude != inhibitor->surface +				&& (tree = inhibitor->surface->data) +				&& tree->node.enabled)) {  			inhibited = 1;  			break;  		} | 
