From 3d358a06f2ef19d55f6cdca01dbfa51e112fcac7 Mon Sep 17 00:00:00 2001 From: Bernd Busse Date: Sun, 25 Oct 2020 12:33:59 +0100 Subject: [PATCH] event: Add missing check if window is managed before setting flags --- src/event.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/event.c b/src/event.c index 7442c0e..12c0304 100644 --- a/src/event.c +++ b/src/event.c @@ -516,7 +516,9 @@ static inline void ev_property_notify(session_t *ps, xcb_property_notify_event_t // If _NET_WM_OPACITY changes if (ev->atom == ps->atoms->a_NET_WM_WINDOW_OPACITY) { auto w = find_managed_win(ps, ev->window) ?: find_toplevel(ps, ev->window); - win_set_property_stale(w, ps->atoms->a_NET_WM_WINDOW_OPACITY); + if (w) { + win_set_property_stale(w, ev->atom); + } } // If frame extents property changes