You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a window is dragged to an edge of the screen, the position is still updated as if the window was partially outside the screen, but the rendering is clipped. This causes the mouse to be offset when interacting with widgets.
Screenshots/Video:
tela_bug_imgui.mp4
Minimal, Complete and Verifiable Example code:
ImGui::Begin("Image Window");
ImVec2 p = ImGui::GetWindowPos();
ImGui::Text("window pos %.1f %.1f", p.x, p.y);
ImVec2 s = ImGui::GetWindowSize();
ImGui::Text("window size %.1f %.1f", s.x, s.y);
if (ImGui::Button("hover")) {}
ImGui::End();
The text was updated successfully, but these errors were encountered:
Are you doing something special to restrict the window to remain on the screen, maybe by altering the draw data? Normal behavior should be that the window isn't restricted, and ImGui seems to think that it isn't when processing the inputs.
This is the main issue we always have with multi-viewports under Linux, e.g. #2117
Our current code always expect our desired size/pos to be successfully applied, which should be fixed.
Version/Branch of Dear ImGui:
Version 1.91.6, Branch: docking
Back-ends:
imgui_impl_glfw.cpp + imgui_impl_opengl3.cpp
Compiler, OS:
Linux + GCC 11.4
Full config/build information:
Details:
When a window is dragged to an edge of the screen, the position is still updated as if the window was partially outside the screen, but the rendering is clipped. This causes the mouse to be offset when interacting with widgets.
Screenshots/Video:
tela_bug_imgui.mp4
Minimal, Complete and Verifiable Example code:
The text was updated successfully, but these errors were encountered: