When I run a fullscreen window (C++ with SDL using the SDL_FULLSCREEN
flag), alt-tab has no effect. Researching it, I only found posts of people having problems with it. Is there a way to do it consistently across different machines? (I'm running Ubuntu now, but I'd like portability) Does OpenGL
handle this better? (considering switching)
Asked
Active
Viewed 1,524 times
3

Yotam Omer
- 15,310
- 11
- 62
- 65

Cannoliopsida
- 3,044
- 5
- 36
- 61
-
2OpenGL will not create windows for you, but libraries like SDL, GLUT or QT do. You'll need to use one of those even if you choose to draw graphics with OpenGL. – KCH Jun 06 '12 at 15:53
1 Answers
2
SDL likes to XGrabKeyboard()
when fullscreened on X11. This tends to lock out your window manager's hotkeys.
Fix SDL or fix your window manager.

genpfault
- 51,148
- 11
- 85
- 139
-
Just to make sure I understand, are you saying that there's no good way to do this with SDL? – Cannoliopsida Jun 06 '12 at 16:38
-
2You could handle the hotkey yourself, maybe just drop out of fullscreen if you're only having this problem on X. Or you could release the grab, or stay in windowed mode and make a no-border window that exactly matches the screen size. [Here's where I'm looking](http://www.libsdl.org/docs/html/wm.html). – jthill Jun 06 '12 at 17:47