Re: [xkbcommon] How to distinguish left-shift and right-shift

2013-09-29 Thread Wander Lairson Costa
2013/9/27 Daniel Stone dan...@fooishbar.org: Hi, On 27 September 2013 03:30, Ran Benita ran...@gmail.com wrote: On Thu, Sep 26, 2013 at 06:46:02PM -0500, Jason Ekstrand wrote: Looking at weston's input.c, I am not seeing any evidence that it sends any key events due to an enter. It does

Re: [xkbcommon] How to distinguish left-shift and right-shift

2013-09-27 Thread Daniel Stone
Hi, On 27 September 2013 03:30, Ran Benita ran...@gmail.com wrote: On Thu, Sep 26, 2013 at 06:46:02PM -0500, Jason Ekstrand wrote: Looking at weston's input.c, I am not seeing any evidence that it sends any key events due to an enter. It does resend the modifiers, but that's different. It

Re: [xkbcommon] How to distinguish left-shift and right-shift

2013-09-27 Thread Wander Lairson Costa
2013/9/26 Jason Ekstrand ja...@jlekstrand.net: [snip] I'm not a Wayland developer, so I can't say with confidence. But I think this choice is deferred to the toolkit layer. In this case both behaviors (server of client side decorations) are potentially useful, so the protocol shouldn't

Re: [xkbcommon] How to distinguish left-shift and right-shift

2013-09-26 Thread Wander Lairson Costa
2013/9/25 Ran Benita ran...@gmail.com: On Tue, Sep 24, 2013 at 08:02:30PM -0300, Wander Lairson Costa wrote: Hi, Hi, I am working for some time porting Blender to wayland [1] and I am now adding keyboard handing support. For that, I am following weston clients code as reference and using

Re: [xkbcommon] How to distinguish left-shift and right-shift

2013-09-26 Thread Ran Benita
On Thu, Sep 26, 2013 at 08:49:24AM -0300, Wander Lairson Costa wrote: 2013/9/25 Ran Benita ran...@gmail.com: On Tue, Sep 24, 2013 at 08:02:30PM -0300, Wander Lairson Costa wrote: Hi, Hi, I am working for some time porting Blender to wayland [1] and I am now adding keyboard handing

Re: [xkbcommon] How to distinguish left-shift and right-shift

2013-09-26 Thread Wander Lairson Costa
2013/9/26 Ran Benita ran...@gmail.com: [snip] The information you need, if you want to use the key-down approach (which is the only one I can think of), is whether e.g. the Left Shift key is down at any given moment. This keys-state information is kept on the compositor, but now you need to

Re: [xkbcommon] How to distinguish left-shift and right-shift

2013-09-26 Thread Ran Benita
On Thu, Sep 26, 2013 at 04:00:15PM -0300, Wander Lairson Costa wrote: 2013/9/26 Ran Benita ran...@gmail.com: [snip] The information you need, if you want to use the key-down approach (which is the only one I can think of), is whether e.g. the Left Shift key is down at any given

Re: [xkbcommon] How to distinguish left-shift and right-shift

2013-09-26 Thread Wander Lairson Costa
2013/9/26 Ran Benita ran...@gmail.com: On Thu, Sep 26, 2013 at 04:00:15PM -0300, Wander Lairson Costa wrote: 2013/9/26 Ran Benita ran...@gmail.com: [snip] The information you need, if you want to use the key-down approach (which is the only one I can think of), is whether e.g. the Left

Re: [xkbcommon] How to distinguish left-shift and right-shift

2013-09-26 Thread Ran Benita
On Thu, Sep 26, 2013 at 06:27:39PM -0300, Wander Lairson Costa wrote: 2013/9/26 Ran Benita ran...@gmail.com: On Thu, Sep 26, 2013 at 04:00:15PM -0300, Wander Lairson Costa wrote: 2013/9/26 Ran Benita ran...@gmail.com: [snip] The information you need, if you want to use the

Re: [xkbcommon] How to distinguish left-shift and right-shift

2013-09-26 Thread Wander Lairson Costa
2013/9/26 Ran Benita ran...@gmail.com: On Thu, Sep 26, 2013 at 06:27:39PM -0300, Wander Lairson Costa wrote: 2013/9/26 Ran Benita ran...@gmail.com: On Thu, Sep 26, 2013 at 04:00:15PM -0300, Wander Lairson Costa wrote: 2013/9/26 Ran Benita ran...@gmail.com: [snip] The information

Re: [xkbcommon] How to distinguish left-shift and right-shift

2013-09-26 Thread Jason Ekstrand
On Thu, Sep 26, 2013 at 5:46 PM, Wander Lairson Costa wander.lair...@gmail.com wrote: 2013/9/26 Ran Benita ran...@gmail.com: On Thu, Sep 26, 2013 at 06:27:39PM -0300, Wander Lairson Costa wrote: 2013/9/26 Ran Benita ran...@gmail.com: On Thu, Sep 26, 2013 at 04:00:15PM -0300, Wander

Re: [xkbcommon] How to distinguish left-shift and right-shift

2013-09-25 Thread Ran Benita
On Tue, Sep 24, 2013 at 08:02:30PM -0300, Wander Lairson Costa wrote: Hi, Hi, I am working for some time porting Blender to wayland [1] and I am now adding keyboard handing support. For that, I am following weston clients code as reference and using libxkbcommon. To make a long history