Viewport: Fixed manual mouse resize to handle mouse viewport change, which will allow resizing a window while it changes viewport. Releasing manual resize may merge a window. Added ConvertViewportPosToViewportPos() helper. Renamed NewFrameUpdateMovingWindowDropViewport() to UpdateTryMergeWindowIntoHostViewport() and removed the now-unnecessary half of the function. + renaming (#1542)

This commit is contained in:
omar
2018-04-17 22:09:01 +02:00
parent 6ac50634e3
commit 25f25d546d
2 changed files with 43 additions and 36 deletions

View File

@ -959,6 +959,7 @@ struct IMGUI_API ImGuiWindow
ImVec2 ScrollbarSizes;
bool ScrollbarX, ScrollbarY;
bool ViewportOwned;
bool ViewportTryMerge;
bool Active; // Set to true on Begin(), unless Collapsed
bool WasActive;
bool WriteAccessed; // Set to true when any widget access the current window