You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported in version: 2.0.4 Reported for operating system, platform: Linux, x86_64
Comments on the original bug report:
On 2016-08-17 15:15:04 +0000, Jason Wyatt wrote:
Created attachment 2550
Demo for incorrect hidden/shown state
After hiding the window, SDL_WINDOW_HIDDEN/SDL_WINDOW_SHOWN flags on a window are correctly updated. However on the next SDL_PumpEvents, they are set incorrectly.
This appears to be because X11_GetNetWMState does not check whether the _NET_WM_STATE property exists (it shouldn't on unmapped windows, see https://specifications.freedesktop.org/wm-spec/wm-spec-1.3.html#idm140130317598336). This results in an empty list of atoms for the state, which would imply that the window is not hidden.
(Seen on Fedora 24, Gnome)
On 2016-08-17 17:04:10 +0000, Jason Wyatt wrote:
Created attachment 2551
Quick patch.
Checking that the property exists, and if it doesn't, setting the SDL_WINDOW_HIDDEN flag, fixes the issue for me.
On 2017-07-20 13:07:25 +0000, Dan Ginsburg wrote:
Created attachment 2802
Alternate patch for this bug, the original proposed patch did not work for me
On 2017-07-20 13:10:33 +0000, Dan Ginsburg wrote:
More details on my proposed patch: I am on Kubuntu 16.04.2. I ran into this same bug, but with Jason's patch I found that actualType != None was true so the SDL_WINDOW_HIDDEN would still not be set. My fix instead is to explicitly check for whether the window is unmapped rather than relying on the returned values in XGetWindowProperty.
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: 2.0.4
Reported for operating system, platform: Linux, x86_64
Comments on the original bug report:
On 2016-08-17 15:15:04 +0000, Jason Wyatt wrote:
On 2016-08-17 17:04:10 +0000, Jason Wyatt wrote:
On 2017-07-20 13:07:25 +0000, Dan Ginsburg wrote:
On 2017-07-20 13:10:33 +0000, Dan Ginsburg wrote:
On 2017-07-20 17:53:19 +0000, Sam Lantinga wrote:
On 2017-07-21 08:36:23 +0000, Jason Wyatt wrote:
On 2017-07-21 16:50:23 +0000, Sam Lantinga wrote:
On 2017-11-14 14:46:15 +0000, Max Reitz wrote:
The text was updated successfully, but these errors were encountered: