Index: programs/Xserver/hw/xfree86/drivers/i810/i810_dri.c =================================================================== RCS file: /cvs/xorg/xc/programs/Xserver/hw/xfree86/drivers/i810/i810_dri.c,v retrieving revision 1.5 diff -u -p -r1.5 i810_dri.c --- programs/Xserver/hw/xfree86/drivers/i810/i810_dri.c 12 Oct 2004 19:13:43 -0000 1.5 +++ programs/Xserver/hw/xfree86/drivers/i810/i810_dri.c 19 Jan 2005 16:31:45 -0000 @@ -1497,6 +1497,11 @@ I810DRILeave(ScrnInfoPtr pScrn) xf86DrvMsg(pScrn->scrnIndex, X_ERROR,"%s\n",strerror(errno)); return FALSE; } + if (pI810->cursorARGBHandle != 0) + if (drmAgpUnbind(pI810->drmSubFD, pI810->cursorARGBHandle) != 0) { + xf86DrvMsg(pScrn->scrnIndex, X_ERROR,"%s\n",strerror(errno)); + return FALSE; + } if (pI810->agpAcquired == TRUE) drmAgpRelease(pI810->drmSubFD); pI810->agpAcquired = FALSE;