cursor-renderer: Fix HW cursors

We need to make sure that we update the HW cursor if we disable
it for some reason.
This commit is contained in:
Jasper St. Pierre 2014-04-22 15:28:48 -04:00
parent 33f3ca7fba
commit 93600d6166

View File

@ -269,11 +269,10 @@ update_cursor (MetaCursorRenderer *renderer)
if (meta_is_wayland_compositor ()) if (meta_is_wayland_compositor ())
{ {
update_hw_cursor (renderer);
if (priv->has_hw_cursor) if (priv->has_hw_cursor)
{ move_hw_cursor (renderer);
update_hw_cursor (renderer);
move_hw_cursor (renderer);
}
else else
queue_redraw (renderer); queue_redraw (renderer);
} }