Skip to content
New issue

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

Add hint to stop window from being raised in OnWindowRestored #1394

Closed
SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Closed

Add hint to stop window from being raised in OnWindowRestored #1394

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: 2.0.1
Reported for operating system, platform: All, All

Comments on the original bug report:

On 2014-03-08 17:05:11 +0000, Katie Stafford wrote:

Created attachment 1586
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.

On 2014-03-27 16:33:39 +0000, Sam Lantinga wrote:

Can you double check that this fixes your issue?
http://hg.libsdl.org/SDL/rev/79527cb2cf8a

On 2014-03-28 03:28:34 +0000, Katie Stafford wrote:

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.

On 2014-04-18 05:56:35 +0000, Sam Lantinga wrote:

Okay, let's see if this looks good in the wild.

@SDLBugzilla SDLBugzilla added the enhancement New feature or request label Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant