commit | d3aa0260eecc33575be759d2e32fb60c418b2b7c | [log] [tgz] |
---|---|---|
author | Alex Smith <asmith@feralinteractive.com> | Mon Dec 02 15:41:25 2019 +0000 |
committer | Alex Smith <asmith@feralinteractive.com> | Mon Dec 02 15:41:25 2019 +0000 |
tree | d1d7de5926a14b4b82e731e2d36a1e4f4a4c0e69 | |
parent | 59728f9802c7869a9b47d6176296086dc0d00d45 [diff] |
Fix sending SDL_WINDOWEVENT_RESTORED after unminimizing windows on X11 SDL_SendWindowEvent will only send a RESTORED event if the window has the minimized or maximized flag set. However, for a SHOWN event, it will clear the minimized flag. Since the SHOWN event was being sent first for a MapNotify event, the RESTORED event would never be sent. Swapping the SendWindowEvent calls around fixes this. https://bugzilla.libsdl.org/show_bug.cgi?id=4821