Commit 8d514095 authored by Daniel van Vugt's avatar Daniel van Vugt

cursor-renderer-native: Floor the cursor position instead of rounding

Which eliminates the 1px jitter that was visible when dragging windows,
and eliminates the flickering that was visible when pushing the cursor
against the right/bottom edges of the screen.
parent bdf8d0f1
Pipeline #45744 passed with stages
in 3 minutes and 54 seconds
......@@ -366,8 +366,8 @@ update_monitor_crtc_cursor (MetaMonitor *monitor,
scaled_crtc_rect.origin.y) * scale;
drmModeMoveCursor (kms_fd,
roundf (crtc_cursor_x),
roundf (crtc_cursor_y));
floorf (crtc_cursor_x),
floorf (crtc_cursor_y));
data->out_painted = data->out_painted || TRUE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment