From 70ae98491d5f04b82792f5078b4da70e243dd296 Mon Sep 17 00:00:00 2001 From: Quantum Date: Sat, 8 Aug 2026 14:47:30 -0400 Subject: [PATCH] [client] core: simplify core_setCursorInView logic We don't need any of that weird grabPointer stuff now that we have absolute input. Deleting this will allow Wayland to advertise warp support without doing any of the nasty confining stuff on grab/release. --- client/src/core.c | 35 +---------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/client/src/core.c b/client/src/core.c index 95f48993..663f9579 100644 --- a/client/src/core.c +++ b/client/src/core.c @@ -218,41 +218,8 @@ void core_setCursorInView(bool enable) return; } - enum LG_DSWarpSupport warpSupport = LG_DS_WARP_NONE; - app_getProp(LG_DS_WARP_SUPPORT, &warpSupport); - - const bool immediate = g_cursor.grab || g_params.captureInputOnly || - warpSupport == LG_DS_WARP_NONE; - - if (g_cursor.viewReq == enable) - { - if (immediate) - applyView(enable, false); - else if (enable && !g_cursor.inView) - { - g_state.ds->grabPointer(); - applyView(g_state.ds->isPointerGrabbed(), false); - } - else - MTRACE("view skip=same value=%d", enable); - return; - } - g_cursor.viewReq = enable; - - if (immediate) - { - applyView(enable, false); - return; - } - - if (enable) - { - g_state.ds->grabPointer(); - applyView(g_state.ds->isPointerGrabbed(), false); - } - else - g_state.ds->ungrabPointer(); + applyView(enable, false); } void core_handleGrabEvent(bool active)