From 40163c737cae93aa6c7eac2502b6f84a76a2b6af Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Wed, 4 Sep 2013 17:44:47 +0200 Subject: [PATCH] MetaCursorTracker: don't ask X to set the cursor visibility to the same value Apparently, that's a Match error. Yay for well designed APIs... --- src/core/meta-cursor-tracker.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/meta-cursor-tracker.c b/src/core/meta-cursor-tracker.c index 704295116..77a9898e4 100644 --- a/src/core/meta-cursor-tracker.c +++ b/src/core/meta-cursor-tracker.c @@ -299,6 +299,10 @@ void meta_cursor_tracker_set_pointer_visible (MetaCursorTracker *tracker, gboolean visible) { + if (visible == tracker->is_showing) + return; + tracker->is_showing = visible; + if (visible) XFixesShowCursor (tracker->screen->display->xdisplay, tracker->screen->xroot);