libgdx/libgdx
On window minimize Screen.resize(0,0) called on Windows but not on Linux
开放
#7,072 创建于 2023年1月23日
bugdesktopgood first issue
仓库指标
- 星标
- (25,087 个星标)
- PR 合并指标
- (平均合并 61天 22小时) (30 天内合并 3 个 PR)
描述
When user minimizes the game window, or alt-tabs out of a fullscreen mode, Screen.resize(0,0) gets called when running on Windows. But running on Linux (Debian MATE, if that matters) Screen.resize(0,0) is not called. I don't know if this is a bug, it just caused me some confusion.
Which is the intended behavior, calling resize(0,0) or not calling? On Linux it anyway correctly calls pause() and resume() which are handy for handling relevant logic when exiting / resuming the game window, so resize(0,0) seems redundant to me.
Using libGDX verion 1.11.0
Could not test on macOS for I don't have one
Please select the affected platforms
- Android
- iOS
- HTML/GWT
- Windows
- Linux
- macOS