| Summary: | SDL_WINDOW_HIDDEN flag is inaccurate. | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Jason Wyatt <jwyatt> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | dang, jwyatt, xanclic |
| Version: | 2.0.4 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: |
Demo for incorrect hidden/shown state
Quick patch. Alternate patch for this bug, the original proposed patch did not work for me |
||
|
Description
Jason Wyatt
2016-08-17 15:15:04 UTC
Created attachment 2551 [details]
Quick patch.
Checking that the property exists, and if it doesn't, setting the SDL_WINDOW_HIDDEN flag, fixes the issue for me.
Created attachment 2802 [details]
Alternate patch for this bug, the original proposed patch did not work for me
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. Thanks Dan, I accepted your patch. https://hg.libsdl.org/SDL/rev/7cfe088fafba Jason, can you check the latest build and see if that fixes your issue? Yes, this fixes the issue for me too. Thanks. (In reply to Sam Lantinga from comment #4) > Thanks Dan, I accepted your patch. > https://hg.libsdl.org/SDL/rev/7cfe088fafba > > Jason, can you check the latest build and see if that fixes your issue? Great, thanks! |