From f3c13b915ae560ad0e35b15869a6b5bf97a70b09 Mon Sep 17 00:00:00 2001 From: Slendi Date: Wed, 1 Oct 2025 00:13:36 +0300 Subject: [PATCH] epic cursor lock fail Signed-off-by: Slendi --- src/LunarWM_wayland.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/LunarWM_wayland.c b/src/LunarWM_wayland.c index 422b3b2..4ecf947 100644 --- a/src/LunarWM_wayland.c +++ b/src/LunarWM_wayland.c @@ -1295,17 +1295,6 @@ static void Pointer_motion_notify(struct wl_listener *listener, void *data) struct wlr_pointer_motion_event *ev = data; - auto dev = (struct wlr_input_device *)p->wlr_pointer; - if (wlr_backend_is_wl(p->server->wayland.backend)) { - if (!wlr_wl_pointer_is_locked(dev)) { - assert(wlr_wl_pointer_set_locked(dev, true)); - } - } else if (wlr_backend_is_x11(p->server->wayland.backend)) { - if (!wlr_x11_pointer_is_locked(dev)) { - assert(wlr_x11_pointer_set_locked(dev, true)); - } - } - float dx = (float)ev->delta_x; float dy = (float)ev->delta_y; if (p->server->cman->cfg.input.mouse.invert_x) {