We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
These attachments are available in the static archive:
Reported in version: 2.0.10 Reported for operating system, platform: Linux, x86_64
On 2019-10-08 19:59:13 +0000, ryven wrote:
At least on X11, no SDL_WINDOWEVENT_RESTORED event is emitted after the window was unminimized. This was caused by this commit: SDL-mirror/SDL@abcfcda Reason: In X11_DispathEvent on PropertyNotify on _NET_WM_STATE property change, if unminimized is happens, X11_DispatchMapNotify is called: https://github.com/SDL-mirror/SDL/blob/master/src/video/x11/SDL_x11events.c#L1295 X11_DispatchMapNotify tries to emit two events: first SDL_SendWindowEvent(SDL_WINDOWEVENT_SHOWN) which resets the minimized flag (see commit), then SDL_SendWindowEvent(SDL_WINDOWEVENT_RESTORED) which expects minimized flag set, but it was reset by previous SHOWN event and hence it bails out not emitting RESTORED event: https://github.com/SDL-mirror/SDL/blob/master/src/events/SDL_windowevents.c#L142
At least on X11, no SDL_WINDOWEVENT_RESTORED event is emitted after the window was unminimized.
This was caused by this commit: SDL-mirror/SDL@abcfcda
Reason: In X11_DispathEvent on PropertyNotify on _NET_WM_STATE property change, if unminimized is happens, X11_DispatchMapNotify is called: https://github.com/SDL-mirror/SDL/blob/master/src/video/x11/SDL_x11events.c#L1295
X11_DispatchMapNotify tries to emit two events:
On 2019-12-02 15:46:31 +0000, Alex Smith wrote:
I ran into this issue today. The attached patch fixes it for me.
On 2019-12-02 15:47:05 +0000, Alex Smith wrote:
Created attachment 4085 Patch to fix the issue.
On 2019-12-04 05:56:19 +0000, Sam Lantinga wrote:
Looks good, thanks! https://hg.libsdl.org/SDL/rev/81ca537d1287
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: 2.0.10
Reported for operating system, platform: Linux, x86_64
Comments on the original bug report:
On 2019-10-08 19:59:13 +0000, ryven wrote:
On 2019-12-02 15:46:31 +0000, Alex Smith wrote:
On 2019-12-02 15:47:05 +0000, Alex Smith wrote:
On 2019-12-04 05:56:19 +0000, Sam Lantinga wrote:
The text was updated successfully, but these errors were encountered: