Update cursor behavior. Should resolve fps and flicker issues when vsync is off, but now there will be 2 cursors in the ui, and the game cursor will change based on what is underneath the ui, even though it won't be interactable through the window

This commit is contained in:
meli 2020-01-10 10:02:25 -08:00
parent c80f400a2f
commit eabd5467f1
2 changed files with 8 additions and 1 deletions

View file

@ -106,6 +106,13 @@ namespace Dalamud.Interface
private void DrawUI() private void DrawUI()
{ {
// this is more or less part of what reshade/etc do to avoid having to manually
// set the cursor inside the ui
// This effectively means that when the ui is hovered, there will be 2 cursors -
// the normal one from the game, and the one for ImGui
// Doing this here because it's somewhat application-specific behavior
ImGui.GetIO().MouseDrawCursor = ImGui.GetIO().WantCaptureMouse;
ImGui.ShowDemoWindow(); ImGui.ShowDemoWindow();
} }
} }

@ -1 +1 @@
Subproject commit 24632d181ebb4af0a7793bbdea2dbf3c21fa7b06 Subproject commit 4f0528ad80bc55d1c47341f1fdaa423c4da6f29c