Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alt-tab from fullscreen SDL

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)

like image 669
Cannoliopsida Avatar asked Nov 18 '25 03:11

Cannoliopsida


1 Answers

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.

like image 70
genpfault Avatar answered Nov 19 '25 15:11

genpfault