core: don't refresh image when not using experimental backends
Fixes #176 Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
44bea480b2
commit
9c50bc58cb
|
@ -1216,7 +1216,7 @@ static void refresh_stale_images(session_t *ps) {
|
||||||
// Image needs to be updated, update it.
|
// Image needs to be updated, update it.
|
||||||
w->flags &= ~WIN_FLAGS_IMAGE_STALE;
|
w->flags &= ~WIN_FLAGS_IMAGE_STALE;
|
||||||
if (w->state != WSTATE_UNMAPPING &&
|
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
|
// Rebind image only when the window does have an image
|
||||||
// available
|
// available
|
||||||
if (!win_try_rebind_image(ps, w)) {
|
if (!win_try_rebind_image(ps, w)) {
|
||||||
|
|
Loading…
Reference in New Issue