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
Back-ends: imgui_impl_glfw.cpp + imgui_impl_opengl3.cpp
Compiler: Microsoft Visual Studio
Operating System: Windows 10
My Issue/Question:
Child window popup with multi-viewport enabled does not respond to clicks when the following condition are met:
Popup are not fully encapsulated within the glfw window where it is called upon.
Clicks are made on the area of the popup that are within the glfw window.
Clicking on the popup outside of the glfw window has no issue. The behavior seems to replicate a unfocused child window that gets drawn on top of the glfw window where it is called upon.
Standalone, minimal, complete and verifiable example:
Paste the following into the demo's main.cpp
ImGuiViewport* main_viewport = ImGui::GetMainViewport();
//Set the next window near the bottom left corner of the application, but without going out of bound
ImGui::SetNextWindowSize(ImVec2(300.0f, 50.0f), ImGuiCond_Once);
ImGui::SetNextWindowPos(ImVec2(main_viewport->GetWorkPos().x + 5.0f, main_viewport->GetWorkPos().y + main_viewport->GetWorkSize().y - 150.0f), ImGuiCond_Once);
ImGui::Begin("Test");
ImGui::ColorEdit4("##color", (float*)&style.Colors[0]);
ImGui::End();
Version/Branch of Dear ImGui:
Version: v1.80 WIP
Branch: Docking
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_glfw.cpp + imgui_impl_opengl3.cpp
Compiler: Microsoft Visual Studio
Operating System: Windows 10
My Issue/Question:
Child window popup with multi-viewport enabled does not respond to clicks when the following condition are met:
Clicking on the popup outside of the glfw window has no issue. The behavior seems to replicate a unfocused child window that gets drawn on top of the glfw window where it is called upon.
Screenshots/Video
bandicam.2021-01-20.00-38-43-010.mp4
bandicam.2021-01-19.18-19-35-211.mp4
Standalone, minimal, complete and verifiable example:
Paste the following into the demo's main.cpp