Linux Spring - no alt tab?

Linux Spring - no alt tab?

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
CautionToTheWind
Posts: 272
Joined: 30 May 2006, 17:06

Linux Spring - no alt tab?

Post 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.
User avatar
det
Moderator
Posts: 737
Joined: 26 Nov 2005, 11:22

Post 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.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Post 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).
Nonor
Posts: 19
Joined: 28 Dec 2006, 01:21

Post 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.
CautionToTheWind
Posts: 272
Joined: 30 May 2006, 17:06

Post by CautionToTheWind »

Yes, its a very good idea. I actually wrote an HOW-TO on in.
Post Reply

Return to “Linux”