From 5addaa1820704cbbac85b541b5871289f5e5a00a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 22 Jul 2013 14:32:41 -0700 Subject: [PATCH] simple-touch: Attach buffer before posting damage --- clients/simple-touch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clients/simple-touch.c b/clients/simple-touch.c index b8473f10..534c77ca 100644 --- a/clients/simple-touch.c +++ b/clients/simple-touch.c @@ -141,6 +141,7 @@ touch_paint(struct touch *touch, int32_t x, int32_t y, int32_t id) p += touch->width; p[2] = c; + wl_surface_attach(touch->surface, touch->buffer, 0, 0); wl_surface_damage(touch->surface, x - 2, y - 2, 5, 5); /* todo: We could queue up more damage before committing, if there * are more input events to handle.