mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-04 12:08:47 +02:00
Viewport: Added Platform_UpdateWindow hook for general purpose: Rework Win32 code to reflect viewport flags changes into Win32 while the window is active.
This commit is contained in:
@ -7794,6 +7794,10 @@ void ImGui::UpdatePlatformWindows()
|
||||
g.PlatformIO.Platform_SetWindowAlpha(viewport, viewport->Alpha);
|
||||
viewport->LastAlpha = viewport->Alpha;
|
||||
|
||||
// Optional, general purpose call to allow the back-end to perform general book-keeping even if things haven't changed.
|
||||
if (g.PlatformIO.Platform_UpdateWindow)
|
||||
g.PlatformIO.Platform_UpdateWindow(viewport);
|
||||
|
||||
if (is_new_platform_window)
|
||||
{
|
||||
// On startup ensure new platform window don't steal focus (give it a few frames, as nested contents may lead to viewport being created a few frames late)
|
||||
|
Reference in New Issue
Block a user