diff --git a/client/src/app.c b/client/src/app.c index d6a4bd17..1e4f5426 100644 --- a/client/src/app.c +++ b/client/src/app.c @@ -771,13 +771,6 @@ int app_renderOverlay(struct Rect * rects, int maxRects) // bool test; // igShowDemoWindow(&test); - - ImGuiMouseCursor cursor = igGetMouseCursor(); - if (cursor != g_state.cursorLast) - { - g_state.ds->setPointer(mapImGuiCursor(cursor)); - g_state.cursorLast = cursor; - } } // render the overlays @@ -822,6 +815,16 @@ int app_renderOverlay(struct Rect * rects, int maxRects) overlay->lastRectCount = written; } + if (g_state.overlayInput) + { + ImGuiMouseCursor cursor = igGetMouseCursor(); + if (cursor != g_state.cursorLast) + { + g_state.ds->setPointer(mapImGuiCursor(cursor)); + g_state.cursorLast = cursor; + } + } + igRender(); return totalDamage ? -1 : totalRects;