[PATCH 0/15] Modifier fixups (especially for nested)

Daniel Stone daniel at fooishbar.org
Fri Jun 22 15:09:18 PDT 2012


Hi,

On 22 June 2012 21:13, Kristian Høgsberg <hoegsberg at gmail.com> wrote:
> On Fri, Jun 22, 2012 at 03:47:55PM -0400, Kristian Høgsberg wrote:
>> > Under X the stuck modifer problem is gone (yay!), but without XKB
>> > support, my Alt now doesn't work.  Ctrl, Shift, Super etc does, which
>> > is a little odd... this fixes it:
>>
>> I just tried it with xcb master and the stuck modifier is gone, but if
>> I alt-tab away and then back to weston, alt just doesn't work.  It
>> doesn't trigger modifier events, it just sends the regular key event.
>
> Sorry about that, didn't have xcb-xkb enabled (didn't realize I had to
> explicitly enable it in xcb).  With the xkb event it works fine.  And
> I guess the above is another hint to what might broken: initially Alt
> works, but Alt-tabbing away breaks it so that Alt never triggers,
> again... so it's the opposite of what we had before...

Hm, weird.  I'll have to take a closer look: I tested with Super (I
have Super-Tab bound to switching under Shell), and all Weston's super
shortcuts worked fine.  I think this might be filters in xkbcommon
going awry because we're missing a press or release event, which we
could deal with by checking our local state and posting fake
presses/releases on enter/leave to match it up with the nested state,
maybe?

We can't really just use the mask without xkb_state_update_key,
because then Caps Lock would never lock ... but certainly having Alt
working is pretty critical. :)

Cheers,
Daniel


More information about the wayland-devel mailing list