From 9c50bc58cb35ebdb112cf53404540f5354abe067 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Fri, 24 May 2019 00:12:42 +0100 Subject: [PATCH] core: don't refresh image when not using experimental backends Fixes #176 Signed-off-by: Yuxuan Shui --- src/compton.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compton.c b/src/compton.c index 5023387..59a2c6c 100644 --- a/src/compton.c +++ b/src/compton.c @@ -1216,7 +1216,7 @@ static void refresh_stale_images(session_t *ps) { // Image needs to be updated, update it. w->flags &= ~WIN_FLAGS_IMAGE_STALE; if (w->state != WSTATE_UNMAPPING && - w->state != WSTATE_DESTROYING && ps->redirected) { + w->state != WSTATE_DESTROYING && ps->backend_data) { // Rebind image only when the window does have an image // available if (!win_try_rebind_image(ps, w)) {