summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-03-25 09:40:40 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-03-25 09:40:40 +0000
commita273b207b94933713b3dfd7edd3f6bb9b3e959b9 (patch)
treea9e8e06a8e180ab6833de340dac052c07aada2e4 /tools
parentbfd51e205639b468479985c3c631e5d9c76d5fa7 (diff)
intel-virtual-output: Fix damage iteration over active list
When iterating over the active list to mark the current damage, we need to chase the ->active pointer rather than ->next or else we walk the wrong list from the wrong starting point. Reported-by: Kirill Müller <mail@kirill-mueller.de> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76271 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/virtual.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/virtual.c b/tools/virtual.c
index 9d018846..df925168 100644
--- a/tools/virtual.c
+++ b/tools/virtual.c
@@ -2967,7 +2967,7 @@ int main(int argc, char **argv)
DisplayString(ctx.display->dpy),
de->area.x, de->area.y, de->area.width, de->area.height));
- for (clone = ctx.active; clone; clone = clone->next)
+ for (clone = ctx.active; clone; clone = clone->active)
clone_damage(clone, &de->area);
if (ctx.active)