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

Window minimizes itself when focus is lost to an app on another display #1300

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

Comments

@SDLBugzilla
Copy link
Collaborator

@SDLBugzilla SDLBugzilla commented Feb 10, 2021

This bug report was migrated from our old Bugzilla tracker.

Reported in version: 2.0.1
Reported for operating system, platform: Other, x86_64

Comments on the original bug report:

On 2014-01-07 23:31:41 +0000, Jeffrey Carpenter wrote:

When using the flag SDL_WINDOW_FULLSCREEN_DESKTOP in a window -- either at creation or during a key input event -- if I click off on an application that is on another display monitor, my previously focused SDL window minimizes itself (without reporting any errors). I then have to find it on the dock and tell it to reshow itself. This happens consistently, 100% of the time.

This does not happen when using the SDL_WINDOW_FULLSCREEN flag.

Is this by design, or have I found a bug? For whatever it is worth, I have never encountered this kind of behavior on any other OS X application.

You can attempt to reproduce this bug as I have by editing src/test/SDL_test_common.c and modifying at line ~48 the variable state->window_flags. I used the testsprite2c.c example in my test case, although I am willing to bet that this will happen in any other example as well. (My game engine is where I first encountered this bug).

P.S. My testing system is a tri-monitor setup -- a Macbook Air and two external displays hooked up (the third one is via USB). My platform is Mac OS X 10.9 "Mavericks". I am curious if this behavior I describe happens on 10.8; before Apple made significant improvements in the handling of multi-displays.

On 2014-02-12 03:20:06 +0000, Jeffrey Carpenter wrote:

Disabling the hint "SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS" fixes the behavior I deemed a bug in my report. I suppose this means that the "bug" is actually a "feature"...?

In any case, I'd love to see this hint mentioned in the official wiki documentation.

Thanks!

On 2014-02-13 02:08:28 +0000, Philipp Wiesemann wrote:

(In reply to Jeffrey Carpenter from comment # 1)

Disabling the hint "SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS" fixes the
behavior I deemed a bug in my report. I suppose this means that the "bug" is
actually a "feature"...?

In any case, I'd love to see this hint mentioned in the official wiki
documentation.

Thanks!

Hint added to wiki:

https://wiki.libsdl.org/SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS

Remarks are missing though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant