| Summary: | Add hint to stop window from being raised in OnWindowRestored | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Katie Stafford <katie> |
| Component: | video | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | enhancement | ||
| Priority: | P2 | ||
| Version: | 2.0.1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | Quick patch | ||
Can you double check that this fixes your issue? http://hg.libsdl.org/SDL/rev/79527cb2cf8a Yes, that would solve the issue. If it gets re-added in the future, I still think a hint to disable it wouldn't hurt. Okay, let's see if this looks good in the wild. |
Created attachment 1586 [details] Quick patch SDL_OnWindowRestored currently calls SDL_RaiseWindow, which causes undesired behavior: if the application window is in the background, and the user switches to another desktop, then back, the application brings itself to the foreground. I'm sure there must be a reason why this needs to happen on some platforms, but it would be nice to have a hint to turn it off.