summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@queued.net>2008-12-04 22:41:59 -0500
committerJordan Crouse <jordan@cosmicpenguin.net>2008-12-09 08:00:34 -0700
commit2a36083f3cb93bd4ab456024d6b6776725085904 (patch)
treefc24063dd27deb88f899e53b362b189162819099
parentfb2c1af124a56f34c4212bba16e1926889104cb4 (diff)
xf86-video-geode: after reloading cursors, hide the cursor
Whenever we reload cursors, the geode driver needs to call hide_cursor() to ensure that the cursor is hidden until we finally unhide the cursor. Without this, we see ghost cursors during rotation or VT switches. Signed-off-by: Andres Salomon <dilinger@debian.org>
-rw-r--r--src/lx_display.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lx_display.c b/src/lx_display.c
index 24e490f..b950203 100644
--- a/src/lx_display.c
+++ b/src/lx_display.c
@@ -315,8 +315,11 @@ lx_crtc_commit(xf86CrtcPtr crtc)
}
/* Load the cursor */
- if (crtc->scrn->pScreen != NULL)
+ if (crtc->scrn->pScreen != NULL) {
xf86_reload_cursors(crtc->scrn->pScreen);
+ crtc->funcs->hide_cursor(crtc);
+ crtc->cursor_shown = FALSE;
+ }
/* Renable the video */