dwl

My patch set and modifications to dwl
git clone git://git.ethandl.dev/dwl
Log | Files | Refs | README | LICENSE

commit 6df6781b437937e835d8caca14024829747bd2ab
parent 10c56d63489506ee852f3ec18f078e60ba1885f0
Author: Leonardo Hernández Hernández <leohdz172@protonmail.com>
Date:   Wed, 30 Nov 2022 18:54:54 -0600

simplify check for surface's node state

all `struct wlr_surface` should have a `wlr_scene_tree *` as data

Diffstat:
Mdwl.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dwl.c b/dwl.c @@ -594,11 +594,10 @@ void checkidleinhibitor(struct wlr_surface *exclude) { int inhibited = 0; - struct wlr_scene_tree *tree; struct wlr_idle_inhibitor_v1 *inhibitor; wl_list_for_each(inhibitor, &idle_inhibit_mgr->inhibitors, link) { + struct wlr_scene_tree *tree = inhibitor->surface->data; if (bypass_surface_visibility || (exclude != inhibitor->surface - && (tree = inhibitor->surface->data) && tree->node.enabled)) { inhibited = 1; break;