mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-07 05:28:47 +02:00
Viewports, Backends: GLFW: Fix windows resizing incorrectly due to GLFW firing window positioning callbacks on next frame after window is resized manually. (#2117)
+ Docking fixed PVS warning
This commit is contained in:
@ -13350,8 +13350,8 @@ static void ImGui::DockNodePreviewDockSetup(ImGuiWindow* host_window, ImGuiDockN
|
||||
// Build a tentative future node (reuse same structure because it is practical. Shape will be readjusted when previewing a split)
|
||||
data->FutureNode.HasCloseButton = (host_node ? host_node->HasCloseButton : host_window->HasCloseButton) || (root_payload->HasCloseButton);
|
||||
data->FutureNode.HasWindowMenuButton = host_node ? true : ((host_window->Flags & ImGuiWindowFlags_NoCollapse) == 0);
|
||||
data->FutureNode.Pos = host_node ? ref_node_for_rect->Pos : host_window->Pos;
|
||||
data->FutureNode.Size = host_node ? ref_node_for_rect->Size : host_window->Size;
|
||||
data->FutureNode.Pos = ref_node_for_rect ? ref_node_for_rect->Pos : host_window->Pos;
|
||||
data->FutureNode.Size = ref_node_for_rect ? ref_node_for_rect->Size : host_window->Size;
|
||||
|
||||
// Calculate drop shapes geometry for allowed splitting directions
|
||||
IM_ASSERT(ImGuiDir_None == -1);
|
||||
|
Reference in New Issue
Block a user