File U_sna-Hide-the-hardware-cursor-when-switching-back-aft.patch of Package xf86-video-intel.6276

From 24f613cae4147e0e1e770ee22932b6e2fb7064a2 Mon Sep 17 00:00:00 2001
From: Chris Wilson <chris@chris-wilson.co.uk>
Date: Thu, 28 Jul 2016 22:42:28 +0100
Subject: [PATCH] sna: Hide the hardware cursor when switching back after an
 error

If the kernel complains when trying to move the cursor, we disable the
hwcursor and switch to swcursor. However, if the kernel is still showing
the hwcursor we end up with multiple visible cursors. Attempt to disable
the hwcursor (that may or may not work) as we switch over.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
---
 src/sna/sna_display.c |    2 ++
 1 file changed, 2 insertions(+)

--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -5771,6 +5771,8 @@ static void __restore_swcursor(ScrnInfoP
 
 static void restore_swcursor(struct sna *sna)
 {
+	sna->cursor.info->HideCursor(sna->scrn);
+
 	/* XXX Force the cursor to be restored (avoiding recursion) */
 	FreeCursor(sna->cursor.ref, None);
 	sna->cursor.ref = NULL;
openSUSE Build Service is sponsored by