From 2c95011e736c2456a5c974388e8b5fcdb96e2c85 Mon Sep 17 00:00:00 2001 From: Mr_Goldberg Date: Fri, 14 Feb 2020 15:03:20 -0500 Subject: [PATCH] Fix mouse cursor showing up in some games due to overlay. --- overlay_experimental/steam_overlay.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/overlay_experimental/steam_overlay.cpp b/overlay_experimental/steam_overlay.cpp index ea82e4d..aa12162 100644 --- a/overlay_experimental/steam_overlay.cpp +++ b/overlay_experimental/steam_overlay.cpp @@ -629,6 +629,7 @@ void Steam_Overlay::OverlayProc() if (show_overlay) { + io.ConfigFlags &= ~ImGuiConfigFlags_NoMouseCursorChange; // Set the overlay windows to the size of the game window ImGui::SetNextWindowPos({ 0,0 }); ImGui::SetNextWindowSize({ static_cast(io.DisplaySize.x), @@ -681,7 +682,9 @@ void Steam_Overlay::OverlayProc() if (!show) ShowOverlay(false); - }// if(show_overlay) + } else { + io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange; + } } void Steam_Overlay::Callback(Common_Message *msg)