Skip to content

Commit

Permalink
core: don't refresh image when not using experimental backends
Browse files Browse the repository at this point in the history
Fixes chjj#176

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
  • Loading branch information
yshui committed May 23, 2019
1 parent 44bea48 commit 9c50bc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compton.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 9c50bc5

Please sign in to comment.