From f94e5488d4ab34e24f8dd63bf09181bc1fd78e25 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 20 May 2023 21:36:15 +0200 Subject: [PATCH] fix: Mouse cursor not adjusting anymore properly --- lib/external/imgui/source/imgui_impl_glfw.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/lib/external/imgui/source/imgui_impl_glfw.cpp b/lib/external/imgui/source/imgui_impl_glfw.cpp index dd6efc145..0ba6dfc05 100644 --- a/lib/external/imgui/source/imgui_impl_glfw.cpp +++ b/lib/external/imgui/source/imgui_impl_glfw.cpp @@ -750,14 +750,11 @@ static void ImGui_ImplGlfw_UpdateMouseCursor() else { // IMHEX PATCH BEGIN - if (!bd->BorderlessWindow) { + /*if (!bd->BorderlessWindow) {*/ // Show OS mouse cursor // FIXME-PLATFORM: Unfocused windows seems to fail changing the mouse cursor with GLFW 3.2, but 3.3 works here. #if defined(_WIN32) switch (imgui_cursor) { - case ImGuiMouseCursor_Arrow: - SetCursor(LoadCursor(nullptr, IDC_ARROW)); - break; case ImGuiMouseCursor_Hand: SetCursor(LoadCursor(nullptr, IDC_HAND)); break; @@ -782,16 +779,12 @@ static void ImGui_ImplGlfw_UpdateMouseCursor() case ImGuiMouseCursor_TextInput: SetCursor(LoadCursor(nullptr, IDC_IBEAM)); break; - default: - case ImGuiMouseCursor_None: - SetCursor(LoadCursor(nullptr, IDC_ARROW)); - break; } #else glfwSetCursor(window, bd->MouseCursors[imgui_cursor] ? bd->MouseCursors[imgui_cursor] : bd->MouseCursors[ImGuiMouseCursor_Arrow]); #endif glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_NORMAL); - } + /*}*/ // IMHEX PATCH END } }