Ubuntu 9.04 game loses focus.

Ubuntu 9.04 game loses focus.

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

Moderator: Moderators

Post Reply
lolzownz
Posts: 1
Joined: 02 Jul 2009, 05:53

Ubuntu 9.04 game loses focus.

Post by lolzownz »

I have two Linux machines each with ubuntu 9.04 on them.
Computer 1 is a e5200 @ 4ghz 4gb of ram and an hd4850
Computer 2 is a e6550 at stock clocks, 2gb of ram and a 8800gts 320
Spring runs fine, except at every at roughly 10 minutes in, on both machines the window loses focus. does anyone know how to stop spring from losing focus?
I'm using the Gnome GUI, if that matters.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Ubuntu 9.04 game loses focus.

Post by Auswaschbar »

You can either set some focus stealing prevention (dunno how to do that in gnome, thought), or find out which app is stealing it and quit it before playing.
User avatar
sillynanny
Posts: 125
Joined: 20 Jun 2008, 14:26

Re: Ubuntu 9.04 game loses focus.

Post by sillynanny »

I saw this problem before and solved it by disabling desktop effects and using the metacity (for Gnome) window manager instead when playing spring.

Install the package fusion-icon and run it and you'll get an icon on the tray where you can make the switch.
User avatar
KaiserJ
Community Representative
Posts: 3113
Joined: 08 Sep 2008, 22:59

Re: Ubuntu 9.04 game loses focus.

Post by KaiserJ »

my guess : the screensaver. happens to me also
User avatar
wilbefast
Posts: 255
Joined: 14 Oct 2009, 18:04

Re: Ubuntu 9.04 game loses focus.

Post by wilbefast »

This is a problem that Ubuntu has with many fullscreen applications:

http://ubuntuforums.org/showthread.php?t=1238305

The only way I know of solving it is to turn off Compiz (visual effects) in System > Preferences > Appearance > Visual Effects

You can also write a script that turns them off automatically and insert it into all your game launchers, but I couldn't be bothered :?

The screen will still dim when in fullscreen unless you turn off "Dim screen when idle" in Power Options.

Hope this helps,


William

edit: oops - I missed the post a couple above that says the same thing :shock: still, the link may prove useful.
Post Reply

Return to “Linux”