Blame SOURCES/0001-widget-Only-show-the-cursor-on-motion-if-moved.patch

fd1d4b
From 9077ef68bebee9a22d836a00af72aa02d5628ed4 Mon Sep 17 00:00:00 2001
fd1d4b
From: Bastien Nocera <hadess@hadess.net>
fd1d4b
Date: Fri, 16 Nov 2012 16:18:05 +0100
fd1d4b
Subject: [PATCH] widget: Only show the cursor on motion if moved
fd1d4b
fd1d4b
Some devices, like Wacom tablets, will emit mouse motion
fd1d4b
events even when the mouse doesn't move on the tablet. This
fd1d4b
means that the mouse cursor will show up on the screen very shortly
fd1d4b
after hiding.
fd1d4b
fd1d4b
We now check the motion event against the last location of the
fd1d4b
mouse cursor to avoid this behaviour.
fd1d4b
fd1d4b
https://bugzilla.gnome.org/show_bug.cgi?id=688456
fd1d4b
---
fd1d4b
 src/vte.c | 7 +++++--
fd1d4b
 1 file changed, 5 insertions(+), 2 deletions(-)
fd1d4b
fd1d4b
diff --git a/src/vte.c b/src/vte.c
fd1d4b
index bbe6cf6..c5922e6 100644
fd1d4b
--- a/src/vte.c
fd1d4b
+++ b/src/vte.c
fd1d4b
@@ -7294,8 +7294,11 @@ vte_terminal_motion_notify(GtkWidget *widget, GdkEventMotion *event)
fd1d4b
 	} else {
fd1d4b
 		/* Hilite any matches. */
fd1d4b
 		vte_terminal_match_hilite(terminal, x, y);
fd1d4b
-		/* Show the cursor. */
fd1d4b
-		_vte_terminal_set_pointer_visible(terminal, TRUE);
fd1d4b
+		/* Show the cursor if we moved. */
fd1d4b
+		if (event->type != GDK_MOTION_NOTIFY ||
fd1d4b
+		    x != terminal->pvt->mouse_last_x ||
fd1d4b
+		    y != terminal->pvt->mouse_last_y)
fd1d4b
+			_vte_terminal_set_pointer_visible(terminal, TRUE);
fd1d4b
 	}
fd1d4b
 
fd1d4b
 	switch (event->type) {
fd1d4b
-- 
fd1d4b
1.8.0
fd1d4b