diff options
-rw-r--r-- | types/wlr_damage_ring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/types/wlr_damage_ring.c b/types/wlr_damage_ring.c index ff6de4f4..36ea8628 100644 --- a/types/wlr_damage_ring.c +++ b/types/wlr_damage_ring.c @@ -171,7 +171,7 @@ void wlr_damage_ring_rotate_buffer(struct wlr_damage_ring *ring, // Accumulate damage from old buffers for (size_t i = 0; i < WLR_DAMAGE_RING_BUFFERS_LEN; i++) { struct wlr_damage_ring_buffer *rb = &ring->buffers[i]; - if (rb->seq < ring_buffer->seq) { + if (rb->seq > ring_buffer->seq) { pixman_region32_union(damage, damage, &rb->damage); } } |