1
0
Fork 0
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:
Yuxuan Shui 2021-07-09 19:15:16 +01:00
parent f44d6cd7c1
commit d9836a6751
No known key found for this signature in database
GPG key ID: D3A4405BE6CC17F4

View file

@ -362,7 +362,8 @@ void paint_all_new(session_t *ps, struct managed_win *t, bool ignore_damage) {
ps->backend_data, w->win_image, &reg_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;