On Wed, Dec 17, 2014 at 4:58 PM, Tycho Andersen <[email protected]> wrote:
> > It was originally a typo of mine but when checking xkeysyms.py I saw
> > it was XF86*
>
> Ok, and even with the right string it doesn't seem to work? Can you
> send a debug log? It looks like you need to have something bound to
> XF86Copy for qtile to actually propagate it.

yeps, even with the right string nothing happens, nothing in the logs.
if I try to debug I can see that the keystroke finds its way trough
handle_KeyPress()

> > Where can I see that ?
>
> http://tronche.com/gui/x/xlib/events/keyboard-pointer/keyboard-pointer.html
>
> In particular, you're interested in ShiftMask, LockMask, ControlMask,
> Mod{1-5}Mask, which are exposed in xpyb/xcffib as:
>
> xcffib.xproto.ModMask.Shift
> xcffib.xproto.ModMask._1
>
> etc.

In fact I saw that there was already a cmd_simulate_keypress()
function that already support modifiers so I guess that
fake_keypress() is redundant.

> > Personally I prefer Win+Alt+<left|right> instead of Ctrl+Tab,
> > Ctrl+Shift+Tab. Being able to configure this in Qtile is really a
> > relief for me :-)
>
> Glad to hear it!

at least I'll be relieved when I'll succeed :-)

Any idea why this doesn't work ?

.... # win = 'mod4' and alt = 'mod1']

Key([win, alt], "Right", lazy.simulate_keypress(["control"], "Tab")),
Key([win, alt], "Left", lazy.simulate_keypress(["control", "shift"], "Tab")),


Here's the xev ouput of the win+alt+right key press compared with and
without qtile binding:

http://www.mergely.com/DiTZS5Gp/

We can obviously see that the Left keypress/keyrelease are not present
with qtile binding and those focusin/out event are added.
It doesn't talk much to me but maybe this will give you a hint.

I've debugged the thing and I'm sure that the mappings
(win+alt+[Left,Right]) works and goes to cmd_simulate_keypress()
I'm also sure that the ['control'] and ['conrol', 'shift'] modifiers
are properly converted to a binary state.
I see that the (win+alt+[Left,Right]) is captured but the
Ctrl[+Shift]+Tab key simulation is not working.
What is a black box to me is how the actual handling/bubbling of the
keypress simulation is working with the x host.

Any hint for further debugging ?


-- 
Fabien Meghazi
http://www.amigrave.com

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to