event: Add missing check if window is managed before setting flags

This commit is contained in:
Bernd Busse 2020-10-25 12:33:59 +01:00
parent 9c7f852031
commit 3d358a06f2
No known key found for this signature in database
GPG Key ID: 6DD2A3C48E63A5AB
1 changed files with 3 additions and 1 deletions

View File

@ -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