Discussion:
[Fluxbox-users] Switching between windows
s***@free.fr
2010-07-24 07:01:52 UTC
Permalink
Hello,

I am writing a guide for a video game.
I would like to switch between my video game's window and my text editor's
window a lot of times.
The problem is : Alt+Tab shortcut doesn't work when the video game is running.

I found a solution : open two X sessions. The first session run the game. The
second session run the text editor. Then I can switch using Ctrl+Alt+F7 and
Ctrl+Alt+F8.

This is how I do :
$ startx &
$ startx -- :1 &

The problem is when I go the the first session using Ctrl+Alt+F7, my keyboard
doesn't work on fluxbox, my mouse cursor move but when I click on the desktop
nothing happened.

Can you help me to switch between windows on fluxbox?

Thank you.
s***@free.fr
2010-07-24 21:09:15 UTC
Permalink
When the video game is in window mode, Alt+Tab doesn't work again...
I plug a new USB keyboard but Alt+Tab doesn't work again...
The video game hasn't a little text console (pressing "~"), so Alt+Tab doesn't
work again...
So the only thing I can do is to open two X sessions (see below).
But why I lose the keyboard and mouse events on the first X session ?
It's probably a "feature" that the game locks the keyboard (and x-server)
during play.
I know some games (enemy territory for instance) releases the full X lock
when you bring up the little text console (pressing "~"), at which point you
can alt-tab, and ctrl-alt-F7 to your heart's content. You might want to see
if your video game can do likewise. A related option might be the
"fullscreen" option, but really depends on the game engine.
You could possibly make something work with an entirely separate keyboard
device :-)
Post by s***@free.fr
Hello,
I am writing a guide for a video game.
I would like to switch between my video game's window and my text editor's
window a lot of times.
The problem is : Alt+Tab shortcut doesn't work when the video game is
running.
I found a solution : open two X sessions. The first session run the game.
The
second session run the text editor. Then I can switch using Ctrl+Alt+F7 and
Ctrl+Alt+F8.
$ startx &
$ startx -- :1 &
The problem is when I go the the first session using Ctrl+Alt+F7, my
keyboard
doesn't work on fluxbox, my mouse cursor move but when I click on the
desktop
nothing happened.
Can you help me to switch between windows on fluxbox?
Thank you.
------------------------------------------------------------------------------
Post by s***@free.fr
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Fluxbox-users mailing list
https://lists.sourceforge.net/lists/listinfo/fluxbox-users
Simon Bowden
2010-07-24 22:28:14 UTC
Permalink
I don't have a clear answer. My pure guess is that the X server is doing an
exclusive grab on the keyboard device, so the other X server can't get
events from it. You might be able to look at the "GrabDevice" option, make
sure it's turned off. You could also try different keyboard drivers for your
X (e.g. make sure it's using evdev with /dev/input/something). Another
interesting to search around is *EVIOCGRAB (an ioctl).*

This page has a pile of links and references if you want to play. The modern
stuff is at the end.
http://cambuca.ldhs.cetuc.puc-rio.br/multiuser/

But trying to use one keybaord with 2 servers is different to most of the
multiseat stuff: it's an awkward problem.

Good luck, hopefully someone else knows or you can get it working :-)
Post by s***@free.fr
When the video game is in window mode, Alt+Tab doesn't work again...
I plug a new USB keyboard but Alt+Tab doesn't work again...
The video game hasn't a little text console (pressing "~"), so Alt+Tab doesn't
work again...
So the only thing I can do is to open two X sessions (see below).
But why I lose the keyboard and mouse events on the first X session ?
It's probably a "feature" that the game locks the keyboard (and x-server)
during play.
I know some games (enemy territory for instance) releases the full X lock
when you bring up the little text console (pressing "~"), at which point
you
can alt-tab, and ctrl-alt-F7 to your heart's content. You might want to
see
if your video game can do likewise. A related option might be the
"fullscreen" option, but really depends on the game engine.
You could possibly make something work with an entirely separate keyboard
device :-)
Post by s***@free.fr
Hello,
I am writing a guide for a video game.
I would like to switch between my video game's window and my text
editor's
Post by s***@free.fr
window a lot of times.
The problem is : Alt+Tab shortcut doesn't work when the video game is
running.
I found a solution : open two X sessions. The first session run the
game.
Post by s***@free.fr
The
second session run the text editor. Then I can switch using Ctrl+Alt+F7
and
Post by s***@free.fr
Ctrl+Alt+F8.
$ startx &
$ startx -- :1 &
The problem is when I go the the first session using Ctrl+Alt+F7, my
keyboard
doesn't work on fluxbox, my mouse cursor move but when I click on the
desktop
nothing happened.
Can you help me to switch between windows on fluxbox?
Thank you.
------------------------------------------------------------------------------
Post by s***@free.fr
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Fluxbox-users mailing list
https://lists.sourceforge.net/lists/listinfo/fluxbox-users
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Fluxbox-users mailing list
https://lists.sourceforge.net/lists/listinfo/fluxbox-users
s***@free.fr
2010-08-09 02:13:30 UTC
Permalink
The solution is here :
$ startx `which fluxbox` &
$ startx `which eduke32` -- :1 &

(in this example, the video game is eduke32)

I need to precise the command to launch in order it works correctly (the
commands are fluxbox, then eduke32).
I can now switch between the 2 X sessions using ctrl-alt-F7 and ctrl-alt-F8
shortcuts.

Maybe there is a better solution with only one X session...

Thanks a lot ;-)
Post by s***@free.fr
When the video game is in window mode, Alt+Tab doesn't work again...
I plug a new USB keyboard but Alt+Tab doesn't work again...
The video game hasn't a little text console (pressing "~"), so Alt+Tab doesn't
work again...
So the only thing I can do is to open two X sessions (see below).
But why I lose the keyboard and mouse events on the first X session ?
It's probably a "feature" that the game locks the keyboard (and x-server)
during play.
I know some games (enemy territory for instance) releases the full X lock
when you bring up the little text console (pressing "~"), at which point
you
can alt-tab, and ctrl-alt-F7 to your heart's content. You might want to see
if your video game can do likewise. A related option might be the
"fullscreen" option, but really depends on the game engine.
You could possibly make something work with an entirely separate keyboard
device :-)
Post by s***@free.fr
Hello,
I am writing a guide for a video game.
I would like to switch between my video game's window and my text
editor's
Post by s***@free.fr
window a lot of times.
The problem is : Alt+Tab shortcut doesn't work when the video game is
running.
I found a solution : open two X sessions. The first session run the game.
The
second session run the text editor. Then I can switch using Ctrl+Alt+F7
and
Post by s***@free.fr
Ctrl+Alt+F8.
$ startx &
$ startx -- :1 &
The problem is when I go the the first session using Ctrl+Alt+F7, my
keyboard
doesn't work on fluxbox, my mouse cursor move but when I click on the
desktop
nothing happened.
Can you help me to switch between windows on fluxbox?
Thank you.
------------------------------------------------------------------------------
Post by s***@free.fr
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Fluxbox-users mailing list
https://lists.sourceforge.net/lists/listinfo/fluxbox-users
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Fluxbox-users mailing list
https://lists.sourceforge.net/lists/listinfo/fluxbox-users
Loading...