FreeOrion|linux grabs mouse focus - how to release?

Problems and solutions for installing or running FreeOrion, including discussion of bugs if needed before posting a bug report on GitHub. For problems building from source, post in Compile.

Moderator: Oberlus

Post Reply
Message
Author
User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

FreeOrion|linux grabs mouse focus - how to release?

#1 Post by kroddn »

If running freeorion in windowed mode, it grabs the mouse and never releases it. If freeorion gets freezed, a normal user won't be able to kill it and has to reset his machine.

How can the tech-demo be closed if you never get the mouse out of the client area?

The only way of killing it is shwitching to a console (pressing CRTL+ALT+F1) and sending a kill signal to freeorion. I don't think most people are aware of that trick :-)

I suggest implementing a Keyboard shortcut that releases the mouse - like VMWare does it when you press CRTL+ALT.

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: FreeOrion|linux grabs mouse focus - how to release?

#2 Post by OndrejR »

CTRL + Q don't work in tech demo to exit?

User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

Re: FreeOrion|linux grabs mouse focus - how to release?

#3 Post by kroddn »

It works. Should me mentioned somewhere INSIDE the tech-demo.

What is the techdemo supposed to do? It just keeps my cpu at 100%, but nothing moves there...

I must admit that "normal" users won't run the techdemo.

User avatar
OndrejR
Space Dragon
Posts: 339
Joined: Thu Oct 02, 2008 11:00 pm
Location: Slovakia

Re: FreeOrion|linux grabs mouse focus - how to release?

#4 Post by OndrejR »

It is for testing planetary system. You can look at objects, rotate camera, zoom camera and that is all. Tzlaine works on combat menu.

User avatar
pd
Graphics Lead Emeritus
Posts: 1924
Joined: Mon Mar 08, 2004 6:17 pm
Location: 52°16'N 10°31'E

Re: FreeOrion|linux grabs mouse focus - how to release?

#5 Post by pd »

It's the playground for tzlaine and artists.

User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

Re: FreeOrion|linux grabs mouse focus - how to release?

#6 Post by kroddn »

There's a file GG/src/Ogre/Plugins/OISInput.cfg in FreeOrion repository - if that is copied into the application directory / current working directory, disabling grabbing works. Thanks Geoff.

/Edit: the file also exists in FreeOrion svn root directory. I'll deliver that with the next release.

User avatar
IConrad
Space Kraken
Posts: 163
Joined: Mon Nov 10, 2008 5:55 pm

Re: FreeOrion|linux grabs mouse focus - how to release?

#7 Post by IConrad »

Alternatively, Alt + Tab also releases the mouse focus for me via application switching.

Post Reply