Alt-tab from fullscreen SDL

ぃ、小莉子 提交于 2019-12-13 14:13:59

问题


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)


回答1:


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.



来源:https://stackoverflow.com/questions/10916997/alt-tab-from-fullscreen-sdl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!