From 1ca43be072cf2a46c3c7bc4b31a1b6dc11c15f80 Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Wed, 22 Jul 2026 20:20:13 +0200 Subject: [PATCH] Position the tooltip for disabled settings on top of the setting instead of following the cursor --- client/scenes/gui_settings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/scenes/gui_settings.cpp b/client/scenes/gui_settings.cpp index 54fc1756..6de511dc 100644 --- a/client/scenes/gui_settings.cpp +++ b/client/scenes/gui_settings.cpp @@ -21,8 +21,8 @@ // ui:: widget for each, rebuilt every frame so dynamic options/descriptions just work // same pages serve the lobby and the in-stream window, gated by ctx.in_game -#include "scenes/gui_common.h" #define IMGUI_DEFINE_MATH_OPERATORS +#include "scenes/gui_common.h" #include "gui_settings.h" @@ -170,7 +170,7 @@ void render_settings(const wivrn::gui::settings_context & ctx, const char * card { const ImVec2 row_max{row_min.x + ImGui::GetContentRegionAvail().x, ImGui::GetCursorScreenPos().y}; if (ImGui::IsMouseHoveringRect(row_min, row_max)) - ctx.imgui_ctx.tooltip(s.disabled_tooltip, ImGui::GetMousePos()); + ctx.imgui_ctx.tooltip(s.disabled_tooltip, (row_min + row_max) / 2); } }