1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-11-11 13:51:02 -05:00

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

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