[PATCH weston] input: don't send to clients key events eaten by bindings
Bill Spitzak
spitzak at gmail.com
Wed Oct 8 11:00:25 PDT 2014
On 10/08/2014 01:41 AM, Giulio Camuffo wrote:
> 2014-10-08 0:50 GMT+03:00 Bill Spitzak <spitzak at gmail.com>:
>> I really can't imagine this is a problem, and clients may even expect the
>> current behavior. It certainly is expected for shift keys: if I alt+tab to a
>> program it acts like alt is still held down. A quick test on Ubuntu shows
>> that a program you alt+tab to gets a map with both alt and tab held down.
>
> I don't really care much how it works on Ubuntu, honestly. This is a
> problem because the key binding is supposed to not let the key
> press/release get to the clients, but this isn't what is happening in
> reality. Modifiers keys are not affected by this change.
A key being held down on focus-in will not produce a "press" event, so I
don't see what the problem is.
If a client wants to check if X is held down I think the user expects it
to work even if it was held down as part of the command to switch
windows. Therefore I think the current behavior is correct.
All I can guess is that this is having some problem with the way wayland
is implemented. Is it causing unwanted key repeats? Or preventing them
when they are wanted?? Or are you worried about the client getting a
"release" event?
More information about the wayland-devel
mailing list