[PATCH] XRANDR: Make sure that hardware cursor is inside crtc all the time.
Maxim Levitsky
maximlevitsky at gmail.com
Sat Mar 22 07:03:45 PDT 2008
From dbb4e50fc41d3d7171062fe8e693f4e93d5e7bdb Mon Sep 17 00:00:00 2001
From: Maxim Levitsky <maximlevitsky at gmail.com>
Date: Tue, 11 Mar 2008 22:46:15 +0200
Subject: [PATCH] XRANDR: Make sure that hardware cursor is inside crtc all the time.
---
hw/xfree86/modes/xf86Crtc.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/hw/xfree86/modes/xf86Crtc.c b/hw/xfree86/modes/xf86Crtc.c
index 266e081..7243157 100644
--- a/hw/xfree86/modes/xf86Crtc.c
+++ b/hw/xfree86/modes/xf86Crtc.c
@@ -319,6 +319,9 @@ xf86CrtcSetMode (xf86CrtcPtr crtc, DisplayModePtr mode, Rotation rotation,
if (output->crtc != crtc)
continue;
+ /* Adjust cursor position*/
+ xf86_reload_cursors (crtc->scrn->pScreen);
+
/* Disable the output as the first thing we do. */
output->funcs->prepare(output);
}
--
1.5.3.8
More information about the xorg
mailing list