OSX: Can't minimize windows after running fullscreen

Hi,

I’ve got a weird one here…

After running fullscreen currently open windows refuse to minimize.
I’ve attached a simple test program. Pass “-fs” to run fullscreen
and ESC to quit. I have not tried it on an Intel box, just PPC (10.4.6).

SDL (1.2.11) was build using configure with no special options. I tried
both gcc3.3 and 4.0.1 with the same results. It also makes no difference
if I go OpenGL fullscreen.

It doesn’t always happen, but most of the time.

My current workaround it to switch to windowed mode before I SDL_Quit.

Cheers,–
Frank Becker - Need a break? http://criticalmass.sf.net/

-------------- next part --------------
A non-text attachment was scrubbed…
Name: macbug.c
Type: text/x-csrc
Size: 1055 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060715/9f35be87/attachment.c

Hello !

I’ve got a weird one here…

After running fullscreen currently open windows refuse to minimize.
I’ve attached a simple test program. Pass “-fs” to run fullscreen
and ESC to quit. I have not tried it on an Intel box, just PPC (10.4.6).

SDL (1.2.11) was build using configure with no special options. I tried
both gcc3.3 and 4.0.1 with the same results. It also makes no difference if
I go OpenGL fullscreen.

It doesn’t always happen, but most of the time.

My current workaround it to switch to windowed mode before I SDL_Quit.

On my system, too. Latest Mac OSX Tiger with all Updates.
Latest XCode. PPC iBook 1 GHz.

CU

Frank Becker wrote:

Hi,

I’ve got a weird one here…

After running fullscreen currently open windows refuse to minimize.
I’ve attached a simple test program. Pass “-fs” to run fullscreen
and ESC to quit. I have not tried it on an Intel box, just PPC (10.4.6).

SDL (1.2.11) was build using configure with no special options. I tried
both gcc3.3 and 4.0.1 with the same results. It also makes no difference
if I go OpenGL fullscreen.

It doesn’t always happen, but most of the time.

My current workaround it to switch to windowed mode before I SDL_Quit.

Some more info:

I just tried 1.2.10 (bad) and 1.2.9 (good).

If I use src/video/quartz/SDL_QuartzVideo.m from 1.2.9 in 1.2.10,
the minimize no longer goes bad. I don’t see anything in the diff
that jumps out at as being bad.

When I disable the CGAcquireDisplayFadeReservation in 1.2.10, it’s
less likely to happen.

When minimize doesn’t work, running the workaround fixes things up.

Cheers,–
Frank Becker - Need a break? http://criticalmass.sf.net/

Frank Becker wrote:

After running fullscreen currently open windows refuse to minimize.
I’ve attached a simple test program. Pass “-fs” to run fullscreen
and ESC to quit. I have not tried it on an Intel box, just PPC (10.4.6).

SDL (1.2.11) was build using configure with no special options. I tried
both gcc3.3 and 4.0.1 with the same results. It also makes no difference
if I go OpenGL fullscreen.

It doesn’t always happen, but most of the time.

My current workaround it to switch to windowed mode before I SDL_Quit.

I had trouble at first understanding what the problem is and how your
example provokes it, but now I understand and can reproduce it (SDL
framework somewhere between 1.2.10 and 1.2.11, Mac OS X 10.4.6 PPC).

To clarify: The bug is that when you quit an SDL application while in
fullscreen mode, the open windows of other applications start refusing
to minimize (their minimize control is grayed out). Newly opened windows
do not suffer from the problem, and running the SDL application again,
but quitting it while in windowed mode also fixes the old windows again.

Since this seems to be a bug in code written by me, I’ll have a look,
but I don’t have much time currently, so it may take a while. In the
meantime, can you please file a bug? http://bugzilla.libsdl.org/

I’ve actually been annoyed by these non-minimizable windows several
times, but I never realized that they were caused by SDL applications,
so thanks for pointing it out…

-Christian

Christian Walther wrote:

Since this seems to be a bug in code written by me, I’ll have a look,
but I don’t have much time currently, so it may take a while. In the
meantime, can you please file a bug? http://bugzilla.libsdl.org/

Logged a bug (#281).

Cheers,–
Frank Becker - Need a break? http://criticalmass.sf.net/