mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 19:15:29 +00:00
Don't send a resize event when the window is resized to the dock icon
Partially addresses https://github.com/libsdl-org/SDL/issues/6033
This commit is contained in:
parent
879af7b5c8
commit
a1e34b5e35
|
@ -1168,6 +1168,11 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
|||
break;
|
||||
}
|
||||
|
||||
/* When the window is minimized it's resized to the dock icon size, ignore this */
|
||||
if ((data->window->flags & SDL_WINDOW_MINIMIZED) != 0) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (!GetClientRect(hwnd, &rect) || IsRectEmpty(&rect)) {
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue