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.
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