From f4e67017d6c5abc0c6149842792f179aad130c00 Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Sat, 27 Jan 2024 22:47:25 +0100 Subject: [PATCH] Only show the pointer when it hovers a window --- client/render/imgui_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/render/imgui_impl.cpp b/client/render/imgui_impl.cpp index b09f29d7..6d6627ce 100644 --- a/client/render/imgui_impl.cpp +++ b/client/render/imgui_impl.cpp @@ -432,7 +432,7 @@ void imgui_context::new_frame(XrTime display_time) ImDrawList* draw_list = ImGui::GetForegroundDrawList(); - if (position) + if (position && io.WantCaptureMouse) { ImU32 color_pressed = ImGui::GetColorU32(ImVec4(0, 0.2, 1, 0.8)); ImU32 color_unpressed = ImGui::GetColorU32(ImVec4(1, 1, 1, 0.8));