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:
parent
9c7f852031
commit
3d358a06f2
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue