mirror of
https://github.com/Drezil/imgui.git
synced 2025-01-31 16:16:36 +00:00
Viewport: Fix handling of PlatformRequestResize/PlatformRequestPos. when OS decoration are enabled via ImGuiConfigFlags_ViewportsDecoration .
This commit is contained in:
parent
b94f0241f1
commit
e2082a675c
@ -7687,8 +7687,10 @@ ImGuiViewportP* ImGui::AddUpdateViewport(ImGuiWindow* window, ImGuiID id, const
|
|||||||
ImGuiViewportP* viewport = (ImGuiViewportP*)FindViewportByID(id);
|
ImGuiViewportP* viewport = (ImGuiViewportP*)FindViewportByID(id);
|
||||||
if (viewport)
|
if (viewport)
|
||||||
{
|
{
|
||||||
viewport->Pos = pos;
|
if (!viewport->PlatformRequestMove)
|
||||||
viewport->Size = size;
|
viewport->Pos = pos;
|
||||||
|
if (!viewport->PlatformRequestResize)
|
||||||
|
viewport->Size = size;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user