From 0b7f8d3f6731a7767dc7459239901c98d1fffd40 Mon Sep 17 00:00:00 2001 From: IoI_xD Date: Mon, 4 May 2026 15:25:16 -0500 Subject: [PATCH] wayland: only update cursor coord if its on the currentlyHeldWidget OR if there is no currentlyHeldW --- src/backend/wayland.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/backend/wayland.c b/src/backend/wayland.c index 57fd0ad..a8f22d1 100644 --- a/src/backend/wayland.c +++ b/src/backend/wayland.c @@ -615,14 +615,13 @@ static void pointer_motion(void* data, struct wl_pointer* wl_pointer, MwU32 time WAYLAND_EVENT_OP_START(self); while(topmost_parent->wayland.parent) topmost_parent = topmost_parent->wayland.parent; - if(currentlyHeldWidget) { + if(currentlyHeldWidget == self || !currentlyHeldWidget) { self->wayland.cur_mouse_pos.x = wl_fixed_to_int(surface_x); self->wayland.cur_mouse_pos.y = wl_fixed_to_int(surface_y); p.point = self->wayland.cur_mouse_pos; MwLLDispatch(self, move, &p); - MwLLDispatch(currentlyHeldWidget, down, &p); - } - + } + if(self->wayland.framebuffer.surface) { inArea |= self->wayland.framebuffer.surface == curSurface; }