Page 1 of 1
Linux Spring - no alt tab?
Posted: 03 Dec 2006, 15:44
by CautionToTheWind
Hi, i'm running linux native spring with the windows lobby as per Det's howto. When the game starts (native spring), i cant alt-tab or swtich task in any way. There are other games that dont allow an easy alt-tab, but spring is the only one that wont let me switch even with keyboard shotcuts to start menu, run command or the katapult launcher. When spring is running, its like a game console, expect of course for the text terminals (CTRL+ALT+F1-6).
I think it would be useful to alt-tab for many reasons, so maybe the devs can look into it?
Thanks.
Posted: 03 Dec 2006, 16:39
by det
I agree that this is highly annoying. It prevents me from changing the window and using the keyboard to control rhythmbox. I think it applies to all fullscreen SDL apps. I spent a little time researching the problem and thought "SDL_WM_GrabInput" might solve the problem. But inserting a toggle in the source code hasn't seemed to changed anything.
Posted: 03 Dec 2006, 16:45
by trepan
This setup works for Alt+Tab, and my virtual screen keys (Alt+[1|4]).
It runs the game fullscreen, but also allows you to return to windowed
mode. Note that icewm can be setup to relay some of its special keys
to apps as well.
~/.springrc: Fullscreen=0
~/.springrc: WindowedEdgeMove=1
WindowManager = icewm, (press Alt+F11 for fullscreen)
(or another wm that can do 'virtual' fullscreen windows, that
is borderless windows that match the screen geometry and
are placed at the top of the stack).
Posted: 29 Dec 2006, 02:54
by Nonor
I'm using another solution, which is working for every game and only got advantages.
Just use a script to launch another X server and use "Ctrl + Alt + F7/8" to switch between your desktop and your game. Like this, it just rocks

My script is smthg like this :
Code: Select all
#!/bin/sh
if (($#<1)) ; then
echo "Syntax : $0 <command> [<arguments>]"
exit 1
fi
sudo Xorg -nolisten tcp -terminate -ac :9 &
sleep 2
export DISPLAY=":9"
xterm -bg black -fg red -geometry 300x100 "$@"
Of course you can customize it a bit... That's the power of scripting.
Also think about configuring sudo as necessary.
Posted: 29 Dec 2006, 03:24
by CautionToTheWind
Yes, its a very good idea. I actually wrote an HOW-TO on in.