From 02b11509b25686ff7bd567ecb78a435701edc4c2 Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Fri, 9 Jul 2010 10:36:12 -0700 Subject: [PATCH] miModifyPixmapHeader: always update serialNumber MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We should update the serial number even if we just change a single field. Reviewed-by: Keith Packard Reviewed-by: Kristian Høgsberg Signed-off-by: Jesse Barnes Signed-off-by: Keith Packard --- mi/miscrinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mi/miscrinit.c b/mi/miscrinit.c index ea2a0c1cd..661ecb239 100644 --- a/mi/miscrinit.c +++ b/mi/miscrinit.c @@ -76,7 +76,6 @@ miModifyPixmapHeader(PixmapPtr pPixmap, int width, int height, int depth, pPixmap->drawable.depth = depth; pPixmap->drawable.bitsPerPixel = bitsPerPixel; pPixmap->drawable.id = 0; - pPixmap->drawable.serialNumber = NEXT_SERIAL_NUMBER; pPixmap->drawable.x = 0; pPixmap->drawable.y = 0; pPixmap->drawable.width = width; @@ -116,6 +115,7 @@ miModifyPixmapHeader(PixmapPtr pPixmap, int width, int height, int depth, if (pPixData) pPixmap->devPrivate.ptr = pPixData; } + pPixmap->drawable.serialNumber = NEXT_SERIAL_NUMBER; return TRUE; }