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:
parent
6327b8d15a
commit
40163c737c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user