--- exa_classic.c.orig 2010-06-08 10:17:24.362256614 -0700 +++ exa_classic.c 2010-06-08 10:22:07.905927052 -0700 @@ -256,9 +256,10 @@ Bool ret; if (pExaScr->info->PixmapIsOffscreen) { + void* old_ptr = pPixmap->devPrivate.ptr; pPixmap->devPrivate.ptr = ExaGetPixmapAddress(pPixmap); ret = pExaScr->info->PixmapIsOffscreen(pPixmap); - pPixmap->devPrivate.ptr = NULL; + pPixmap->devPrivate.ptr = old_ptr; } else ret = (pExaPixmap->offscreen && pExaPixmap->fb_ptr);