From 92d42989c74846ba81cf1b19e3869f22d0922e28 Mon Sep 17 00:00:00 2001 From: Egil Date: Sun, 28 Apr 2024 19:21:01 +0200 Subject: [PATCH] Bugfix --- glass-lib/InfiniteGlass/window.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/glass-lib/InfiniteGlass/window.py b/glass-lib/InfiniteGlass/window.py index 1a63489..5bb73f1 100644 --- a/glass-lib/InfiniteGlass/window.py +++ b/glass-lib/InfiniteGlass/window.py @@ -82,9 +82,11 @@ def wrapper(fn): e = event m = mask if fn.__name__.endswith("Mask"): - m = fn.__name__ + if m is None: + m = fn.__name__ else: - e = fn.__name__ + if e is None: + e = fn.__name__ if m is None: m = eventmask.event_mask_map[e] self.change_attributes(event_mask=self.get_attributes().your_event_mask | getattr(Xlib.X, m))