[PATCH] xf86Modes: restore block handler when destroying rotate

Hong Liu hong.liu at intel.com
Fri Mar 21 01:00:42 PDT 2008


fix bug #15157.

Thanks,
Hong


diff --git a/hw/xfree86/modes/xf86Rotate.c b/hw/xfree86/modes/xf86Rotate.c
index e2d6295..d3bb124 100644
--- a/hw/xfree86/modes/xf86Rotate.c
+++ b/hw/xfree86/modes/xf86Rotate.c
@@ -475,6 +475,9 @@ xf86RotateDestroy (xf86CrtcPtr crtc)
 	}
 	DamageDestroy (xf86_config->rotation_damage);
 	xf86_config->rotation_damage = NULL;
+
+	/* restore block handler */
+	pScreen->BlockHandler = xf86_config->BlockHandler;
     }
 }
 





More information about the xorg mailing list