mirror of
https://github.com/yshui/picom.git
synced 2025-02-17 15:56:21 -05:00
backend: fix NULL dereference when rendering inverted windows
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
f44d6cd7c1
commit
d9836a6751
1 changed files with 2 additions and 1 deletions
|
@ -362,7 +362,8 @@ void paint_all_new(session_t *ps, struct managed_win *t, bool ignore_damage) {
|
|||
ps->backend_data, w->win_image, ®_visible_local);
|
||||
if (w->invert_color) {
|
||||
ps->backend_data->ops->set_image_property(
|
||||
ps->backend_data, IMAGE_PROPERTY_INVERTED, new_img, NULL);
|
||||
ps->backend_data, IMAGE_PROPERTY_INVERTED, new_img,
|
||||
&w->invert_color);
|
||||
}
|
||||
if (w->dim) {
|
||||
double dim_opacity = ps->o.inactive_dim;
|
||||
|
|
Loading…
Add table
Reference in a new issue