mirror of
https://github.com/brl/mutter.git
synced 2025-02-18 06:04:10 +00:00
cursor-renderer-native: Don't move the cursor when we don't need to
This commit is contained in:
parent
10ac1000f7
commit
fb9f22c02f
@ -120,7 +120,7 @@ update_hw_cursor (MetaCursorRendererNative *native,
|
|||||||
|
|
||||||
set_crtc_cursor (native, &crtcs[i], crtc_cursor, force);
|
set_crtc_cursor (native, &crtcs[i], crtc_cursor, force);
|
||||||
|
|
||||||
if (cursor)
|
if (crtc_cursor)
|
||||||
{
|
{
|
||||||
drmModeMoveCursor (priv->drm_fd, crtcs[i].crtc_id,
|
drmModeMoveCursor (priv->drm_fd, crtcs[i].crtc_id,
|
||||||
cursor_rect->x - crtc_rect->x,
|
cursor_rect->x - crtc_rect->x,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user