mirror of
https://github.com/ocornut/imgui.git
synced 2026-09-26 16:05:45 +03:00
Viewports, SDL3: Fix secondary viewports collapse sizing
- Fixes incorrect reduced size when un-collapsing window in secondary viewport - SImilar to #2756
This commit is contained in:
parent
fd13a1e892
commit
a231c68036
1 changed files with 7 additions and 1 deletions
|
|
@ -526,7 +526,13 @@ bool ImGui_ImplSDL3_ProcessEvent(const SDL_Event* event)
|
|||
if (event->type == SDL_EVENT_WINDOW_MOVED)
|
||||
viewport->PlatformRequestMove = true;
|
||||
if (event->type == SDL_EVENT_WINDOW_RESIZED)
|
||||
viewport->PlatformRequestResize = true;
|
||||
{
|
||||
int x = int(viewport->Size.x), y = int(viewport->Size.y);
|
||||
if (x != event->window.data1 || y != event->window.data2)
|
||||
{
|
||||
viewport->PlatformRequestResize = true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
case SDL_EVENT_GAMEPAD_ADDED:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue