master hovercats/oakiss / pkg / mpv / patch / 0006-Revert-wayland-fix-missing-lround-in-cursor-surface.patch
 1From 2415a57a73ff5cdf9dab16a77a7917ca726ae109 Mon Sep 17 00:00:00 2001
 2From: Michael Forney <mforney@mforney.org>
 3Date: Wed, 14 Aug 2024 22:51:59 -0700
 4Subject: [PATCH] Revert "wayland: fix missing lround in cursor surface"
 5
 6This reverts commit c1029aaa820de8193e2a466039d2acccca610fd6.
 7---
 8 video/out/wayland_common.c | 2 +-
 9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
12index 5c4cccf3ef..edcc922122 100644
13--- a/video/out/wayland_common.c
14+++ b/video/out/wayland_common.c
15@@ -2010,7 +2010,7 @@ static int set_cursor_visibility(struct vo_wayland_seat *s, bool on)
16             wl_pointer_set_cursor(s->pointer, s->pointer_enter_serial, wl->cursor_surface,
17                                   img->hotspot_x / scale, img->hotspot_y / scale);
18             wp_viewport_set_destination(wl->cursor_viewport, lround(img->width / scale),
19-                                        lround(img->height / scale));
20+                                        img->height / scale);
21             wl_surface_attach(wl->cursor_surface, buffer, 0, 0);
22             wl_surface_damage_buffer(wl->cursor_surface, 0, 0, img->width, img->height);
23         }
24-- 
252.44.0
26