passing keys to X11 or minimizing such a program is not possible without hacks (ETswitch,...). This makes it impossible to use multimedia keys or passing keys to the window manager during gaming or "minimizing" the game.
I am not sure which programs "fault" this is. X11, window manager, the game?
I suspect it's the game, so I post this question here. If I'm wrong please correct me.
I think there are several solutions:
- Use kernel level keygrabber. - I did not find any. If you know an alive project, give me a hint.
- Make the games pass the keyevents to X11 and thus make those miss behaving games work as they should. This allows for minimizing, passing keys to the window manager and using multimedia keys via a normal X11 keygrabber, e.g. lineak.
- Use a hacky program such as ETswitch, which only supports specific games and does not really solve the problem. It only allows for switching, but not multimedia keys.
- Using a second X server for games which allows to use "Alt+Ctrl+F*" to switch to the normal X. This is no real solution, since it doesn't allow passing keys to the WM or using multimedia keys and additionally can cause problems (I sometimes get cookie authentication problems when staring programs, a restart of both Xservers helps though).
Any hints, clarifications or explanations appreciated.