LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-22-2005, 11:39 AM   #1
Stroganoff
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Rep: Reputation: 0
How to force Focus Change (Alt+Tab) in Games?


Hi folks,

Is there any way of getting Alt+Tab (or another hotkey) to work in fullscreen-games? There are even some windowed games which won't let me switch back to my Desktop.
I know few MS-Windows Games with similiar behavior, that is to say Quake3 and Doom3. But I found a tool which lets you minimize Doom3 with a simple F11-Keystroke.

I'm looking for such a tool for Linux. Ctrl+Alt+Fx is not an option here.
I would deeply appreciate your help since I'm setting up a public computer and don't want those peeps claiming "Linux is weaker than Windows", mmkay?
 
Old 11-22-2005, 11:49 AM   #2
KTheorem
LQ Newbie
 
Registered: Nov 2005
Location: Vista, CA, USA
Distribution: Fedora 12
Posts: 24

Rep: Reputation: 16
More info

I have had this problem with for instance, Wesnoth, when it is in fullscreen mode but I haven't seen it with a windowed program. Can you give an example?
 
Old 11-22-2005, 11:59 AM   #3
Stroganoff
LQ Newbie
 
Registered: Nov 2005
Posts: 2

Original Poster
Rep: Reputation: 0
http://koti.mbnet.fi/lsoft/formido/formido.html

Formido, a small but fun shooter against overwhelming bugs.
You can run it in fullscreen though, but you don't have to. I couldn't use my mouse or change focus in windows mode.

Kubuntu 5.10 (KDE)
 
Old 11-22-2005, 01:05 PM   #4
KTheorem
LQ Newbie
 
Registered: Nov 2005
Location: Vista, CA, USA
Distribution: Fedora 12
Posts: 24

Rep: Reputation: 16
SDL?

I think this is an SDL problem. SDL programs tend to force focus (like this case), ignore TERM signals (Frozen Bubble for instance), and do other thouroughly annoying things like that. As far as I know the only way to fix this is by rewriting the parts of the source that make it do these things. If someone else can correct me on this and/or provide a way of getting around this it would be appreciated.
 
Old 11-22-2005, 03:23 PM   #5
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
SDL apps can use Alt-Enter to toggle fullscreen mode. You can also toggle mouse grabbing with Ctrl-G. As for keyboard focus, this is up to the window manager, an app can't forcibly retain keyboard focus (unless it's fullscreen).

I don't think you can directly toggle focus from a fullscreen app because it grabs the keyboard (which is an X, rather than an app, issue). You need to drop out of fullscreen, then change focus. I could be wrong though.
 
Old 11-22-2005, 05:15 PM   #6
KTheorem
LQ Newbie
 
Registered: Nov 2005
Location: Vista, CA, USA
Distribution: Fedora 12
Posts: 24

Rep: Reputation: 16
Unfortunately neither works on any SDL app I have that has these problems. Thanks for the suggestion anyway though :/
 
Old 11-25-2005, 11:50 AM   #7
ioerror
Member
 
Registered: Sep 2005
Location: Old Blighty
Distribution: Slackware, NetBSD
Posts: 536

Rep: Reputation: 34
Quote:
As for keyboard focus, this is up to the window manager, an app can't forcibly retain keyboard focus (unless it's fullscreen).
Aargh, brain cramp: I don't know wtf I was talking about here, an app CAN grab and lock the focus. If the app has no way to release the focus, then I think this is a problem (bug) with the app.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC 4. Modify ALT+TAB behaviour to CTRL+TAB xtracto Linux - Software 1 09-22-2005 02:06 PM
Switching window focus (like alt+tab in windows) and Ctrl+Alt+F1 X windows problem... DiZASTiX Linux - Software 3 01-20-2005 04:56 PM
Minimizing full screen games (like alt-tab in Windows) striderstrahan Linux - Games 1 11-24-2004 10:55 PM
Change size of icons on Alt+tab for KDE via RH9 robertmarkbram Linux - Software 0 10-13-2003 08:48 PM
konqueror tab focus Toker Linux - Newbie 1 10-12-2003 11:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration