Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When running Xephyr, its window title says "ctrl-shift grabs mouse and keyboard".

I am using ctrl-shift (left ctrl - left shift) as keyboard layout switching hotkeys and it interferes with Xephyr, when I press them, just the keyboard layout is switched, Xephyr doesn't grab mouse and keyboard.

I strongly want to avoid changing the hotkey combination for keyboard layout switching.

Is it possible to change the default hotkeys for mouse/keyboard grabbing in Xephyr?

Ideally, I would like a VirtualBox-like behavior: Xephyr window would grab mouse and keyboard when I mouse click on it and would release mouse and keyboard when I press the right ctrl. If this is is not possible, I'm open to alternative suggestions which will keep left ctrl - left shift for keyboard layout switching only.

EDIT: I'm having troubles with releasing the bounty to the accepted answer in ff4 + noscript addon with being whitelisted. To make it not look like a scam attempt I hereby authorize any SU user with enough rep to release the bounty for me if this is possible.

share|improve this question
up vote 5 down vote accepted

It is hard wired in the code:

You have to patch it:

if ((XKeycodeToKeysym(HostX.dpy,xev.xkey.keycode,0) == XK_Shift_L
     || XKeycodeToKeysym(HostX.dpy,xev.xkey.keycode,0) == XK_Shift_R)
    && (xev.xkey.state & ControlMask))

There you can use any other key code you like.

The available key codes are defined in /usr/include/X11/keysymdef.h

share|improve this answer
@vtest: To award the bounty, use the Bounty button. – harrymc May 12 '11 at 6:33
@harrymc: ff4 with noscript seems to play tricks, I've already randomly had this problem before when trying to mark answers as accepted, now it's back for bounties. I have allowed scripts on, but for some reason the site doesn't record the bounty award. I'll keep trying. – vtest May 14 '11 at 12:42
@vtest: I think the FF4 javascript compiler has some issues with I myself have gone back to FF3. – harrymc May 14 '11 at 14:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .