SFML community forums

Help => Window => Topic started by: newguy on September 11, 2009, 11:20:09 am

Title: Alt-Tab in OSX
Post by: newguy on September 11, 2009, 11:20:09 am
Hello,

I saw that the Mac port is still unattended, but I figured I'd give it a try.
When I create an SFML window - just some basic code - Alt+Tab doesn't work,
actually, expose doesn't either, the resolution remains set to whatever i made
the app to have, and won't let go of it until i close the entire program (e.g.
Command+Q).

Is there some kind of workaround I can use?

PS: I haven't seen a topic about this around, searching doesn't give me a hit
on alt-tab, so I apologize if I'm double posting.
Title: Alt-Tab in OSX
Post by: Ceylo on September 11, 2009, 02:52:02 pm
What do you expect Alt+Tab to do ? Do you mean Command+Tab ?
Title: Alt-Tab in OSX
Post by: newguy on September 11, 2009, 03:20:54 pm
Yes, I mean Command+Tab, and it's complement, Command+Shift+Tab.

I expect it to switch to the next application, and my sf::Window to hide itself,
and eventually restore the previous display settings. The reverse should
happen when I Command+Tab back to my application.

Presently, the window just stays there in full-screen mode, and doesn't let any
other window(say Safari, or Xcode) come up.
Same thing happens when using Exposé: all the other windows show up, so I
can switch, yet nothing happens.

From what I can see, the window doesn't react to this class of events. For
example, while in full-screen(800x600x32), pressing Command+Esc I activate
Front Row, which manages to change the display resolution, leaving the
original SFML window in somewhat windowed mode, without any
decoration(e.g. title bars).
Title: Alt-Tab in OSX
Post by: Ceylo on September 11, 2009, 03:46:40 pm
Ok I understood. For now, the resolution switches back to the desktop mode only if you hide or quit the application, but the unexpected behavior you explain should indeed be fixed, you're absolutely right. I'll fix this as soon as possible and it should be available on the Subversion repository in the next few days (it doesn't seem too tricky to handle).
Title: Alt-Tab in OSX
Post by: Ceylo on September 12, 2009, 02:16:53 pm
It should now run fine. Could you download the latest sources from the SVN repository (trunk) and tell me if everything is fine ?