cursor-renderer-native: Don't move the cursor when we don't need to

This commit is contained in:
Jasper St. Pierre 2014-05-17 10:58:49 -04:00
parent 10ac1000f7
commit fb9f22c02f

View File

@ -120,7 +120,7 @@ update_hw_cursor (MetaCursorRendererNative *native,
set_crtc_cursor (native, &crtcs[i], crtc_cursor, force);
if (cursor)
if (crtc_cursor)
{
drmModeMoveCursor (priv->drm_fd, crtcs[i].crtc_id,
cursor_rect->x - crtc_rect->x,