mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-19 06:26:35 +00:00
Viewport: Fix handling of PlatformRequestResize/PlatformRequestPos. when OS decoration are enabled via ImGuiConfigFlags_ViewportsDecoration .
This commit is contained in:
parent
3a678d48b1
commit
ac52d9d44c
@ -7435,7 +7435,9 @@ ImGuiViewportP* ImGui::AddUpdateViewport(ImGuiWindow* window, ImGuiID id, const
|
|||||||
ImGuiViewportP* viewport = (ImGuiViewportP*)FindViewportByID(id);
|
ImGuiViewportP* viewport = (ImGuiViewportP*)FindViewportByID(id);
|
||||||
if (viewport)
|
if (viewport)
|
||||||
{
|
{
|
||||||
|
if (!viewport->PlatformRequestMove)
|
||||||
viewport->Pos = pos;
|
viewport->Pos = pos;
|
||||||
|
if (!viewport->PlatformRequestResize)
|
||||||
viewport->Size = size;
|
viewport->Size = size;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user