Merge pull request #985 from absolutelynothelix/free-root-image-properly

fixes https://github.com/yshui/picom/issues/982
This commit is contained in:
Yuxuan Shui
2023-01-13 16:51:41 +00:00
committed by GitHub

View File

@@ -990,6 +990,7 @@ void root_damaged(session_t *ps) {
if (ps->backend_data) {
if (ps->root_image) {
ps->backend_data->ops->release_image(ps->backend_data, ps->root_image);
ps->root_image = NULL;
}
auto pixmap = x_get_root_back_pixmap(ps->c, ps->root, ps->atoms);
if (pixmap != XCB_NONE) {