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,
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user