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...
This commit is contained in:
Giovanni Campagna 2013-09-04 17:44:47 +02:00
parent 6327b8d15a
commit 40163c737c

View File

@ -299,6 +299,10 @@ void
meta_cursor_tracker_set_pointer_visible (MetaCursorTracker *tracker, meta_cursor_tracker_set_pointer_visible (MetaCursorTracker *tracker,
gboolean visible) gboolean visible)
{ {
if (visible == tracker->is_showing)
return;
tracker->is_showing = visible;
if (visible) if (visible)
XFixesShowCursor (tracker->screen->display->xdisplay, XFixesShowCursor (tracker->screen->display->xdisplay,
tracker->screen->xroot); tracker->screen->xroot);