Fix mouse cursor showing up in some games due to overlay.

This commit is contained in:
Mr_Goldberg 2020-02-14 15:03:20 -05:00
parent 767fee6840
commit 2c95011e73
No known key found for this signature in database
GPG key ID: 8597D87419DEF278

View file

@ -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<float>(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)