Only show the pointer when it hovers a window

This commit is contained in:
Guillaume Meunier
2024-01-28 11:33:36 +01:00
parent 7775761cab
commit f4e67017d6
+1 -1
View File
@@ -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));