logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0006-Revert-wayland-fix-missing-lround-in-cursor-surface.patch (1215B)


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