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 :-)
On Sat, Jul 24, 2010 at 10:09 PM, <spam.spam.spam.spam@...> wrote:
> 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 ?
>
> Quoting Simon Bowden <simon@...>:
>
> > 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 :-)
> >
> > On Sat, Jul 24, 2010 at 8:01 AM, <spam.spam.spam.spam@...> wrote:
> >
> > > 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.
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > 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
> > > Fluxbox-users@...
> > > 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
> Fluxbox-users@...
> https://lists.sourceforge.net/lists/listinfo/fluxbox-users
>
|