Forums » Linux

Keyboard commands: vendetta vs. wm

Sep 10, 2004 thginkrej link
Does vendetta have to capture all the keyboard events while it's running? Is there any way for it to pass unrecognized commands on to the window manager? It would be nice if things like xmms media buttons and virtual desktop switching keys could work on top of vendetta. If I hear an IM message arrive, I have to either ignore it or quit vendetta to answer.

Sure, I could just fire up my laptop and use that for non-vendetta-ness, but it would still be nice..
Sep 10, 2004 a1k0n link
Er..? What? It only reads the events that are sent its way. My desktop switching keys work fine in the game. Does 'xev' also prevent you from using these functions?

It doesn't "capture" anything except the mouse in full screen mode.
Sep 10, 2004 roguelazer link
Really? Most of my wm commands get through, but KDE seems to ignore 'em. Actually, it ignores them if -any- app is running. So maybe that's a KDE problem.
Sep 11, 2004 thginkrej link
I have Alt+[1-4] as my keys that switch to desktops [1-4] and it has never worked. Is there a key combo that would work? Using fluxbox here. And I can switch fine during xev.

Being unable to do anything non-vendetta on the keyboard led me to assume that nothing was getting through..
Sep 11, 2004 mr_spuck link
I don't have any problems. Using Metacity though.
Sep 11, 2004 roguelazer link
You can always run two X's and use Ctrl-Alt-F7 and Ctrl-Alt-F8 to toggle between them. That's at kernel level, not X level.
Sep 15, 2004 jdr link
I spent a couple hours trying to figure this one out with no luck.

a1k0n, would you mind posting you window manager and switching keys?

I can't get key bindings to the wm using gnome/sawfish or fluxbox.

FYI: I thought of doing the multiple xserver thing a few days ago before I noticed this thread, but good luck getting DRI working on more than 1 xserver.. I suppose you could turn off dri for your non-vendetta xservers, but thats no fun.
Sep 17, 2004 a1k0n link
I'm using fluxbox, and my switching keys are alt-F1 through alt-F4. They work as long as the game is in a window, but not when it's full-screen. I suspect fluxbox does that intentionally, because if you switch desktops while the game is fullscreen, you'll have to pan around your desktop in whatever resolution the game is running in.

So yeah, it's nothing having to do with Vendetta capturing events and preventing other windows from seeing them; that's impossible under X. It's the fact either that it's confining the mouse to the window or that the desktop has been forced to the game resolution. If I don't do either of those things, the full screen mode won't work right.

I could add an Alt-Enter bind to switch between fullscreen and window.. That'd probably be convenient.
Sep 19, 2004 thginkrej link
That makes sense - I hadn't tried it in window mode. A key to switch would be convenient, but I may just start using a window now that I'm using a game pad. But window mode does capture the mouse during flight right? So that you don't steer your mouse right off the screen..

Thanks for the explanation, I didn't really know what was going on, just that something was eating my desktop switching keys.
Sep 21, 2004 jdr link
yeah, I'm happy now as well.. in fact, I can use window mode and resize my window so that even the borders are barely visable, but I can still switch desktops.

Again, I think the hot key to switch modes would be nice, though..

Especially since in window mode, there are some scaling issues with the backdrops and I see a great big hexagon in the sky.

Also, yes the flight mode grabs the mouse completly, so there are no problems.