From e20083a2fd9047a5a1e6f57d31ab7e5a2e3d64c2 Mon Sep 17 00:00:00 2001 From: Ningyuan Li Date: Sat, 2 Nov 2024 01:09:15 +0900 Subject: [PATCH] attempt to reset cursor on quit --- CMakeLists.txt | 2 +- src/app/input/app_input.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4797390d..abdcb789 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -133,7 +133,7 @@ set(BUILD_SHARED_CORE_LIBS OFF) if (TARGET_WEBOS) set(CMAKE_INSTALL_LIBDIR lib/backports) - set(SDL2_BACKPORT_RELEASE "release-2.30.8-webos.3") + set(SDL2_BACKPORT_REVISION "6fa9ff9085864e9d7f2c910d6c592fd608126312") include(ExternalSDL2BackportForWebOS) unset(CMAKE_INSTALL_LIBDIR) else () diff --git a/src/app/input/app_input.c b/src/app/input/app_input.c index 5830eda4..c02c7e54 100644 --- a/src/app/input/app_input.c +++ b/src/app/input/app_input.c @@ -35,7 +35,7 @@ void app_set_mouse_grab(app_input_t *input, bool grab) { if (!app_configuration->hardware_mouse) { SDL_SetRelativeMouseMode(grab && !app_configuration->absmouse ? SDL_TRUE : SDL_FALSE); } -// SDL_ShowCursor(grab ? SDL_FALSE : SDL_TRUE); + SDL_ShowCursor(grab ? SDL_FALSE : SDL_TRUE); } bool app_get_mouse_relative() {