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

2013-09-29 Thread Wander Lairson Costa
2013/9/27 Daniel Stone : > Hi, > > On 27 September 2013 03:30, Ran Benita 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 tha

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

2013-09-27 Thread Wander Lairson Costa
2013/9/26 Jason Ekstrand : [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 *require*

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 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 doesn't mak

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

2013-09-27 Thread Ran Benita
On Thu, Sep 26, 2013 at 06:46:02PM -0500, Jason Ekstrand wrote: > > On Thu, Sep 26, 2013 at 5:46 PM, Wander Lairson Costa > > wrote: > > > 2013/9/26 Ran Benita : > > > But this is not the case for the key-replay behavior. There's nothing to > > > be gained by letting different compositors do diff

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 : > > On Thu, Sep 26, 2013 at 06:27:39PM -0300, Wander Lairson Costa wrote: > >> 2013/9/26 Ran Benita : > >> > On Thu, Sep 26, 2013 at 04:00:15PM -0300, Wander Lairson Costa wrote: > >>

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

2013-09-26 Thread Wander Lairson Costa
2013/9/26 Ran Benita : > On Thu, Sep 26, 2013 at 06:27:39PM -0300, Wander Lairson Costa wrote: >> 2013/9/26 Ran Benita : >> > On Thu, Sep 26, 2013 at 04:00:15PM -0300, Wander Lairson Costa wrote: >> >> 2013/9/26 Ran Benita : >> >> >> >> [snip] >> >> >> >> > >> >> > The information you need, if you

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 : > > On Thu, Sep 26, 2013 at 04:00:15PM -0300, Wander Lairson Costa wrote: > >> 2013/9/26 Ran Benita : > >> > >> [snip] > >> > >> > > >> > The information you need, if you want to use the key-down approach

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

2013-09-26 Thread Wander Lairson Costa
2013/9/26 Ran Benita : > On Thu, Sep 26, 2013 at 04:00:15PM -0300, Wander Lairson Costa wrote: >> 2013/9/26 Ran Benita : >> >> [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

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 : > > [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. Th

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

2013-09-26 Thread Wander Lairson Costa
2013/9/26 Ran Benita : [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 reconstruct

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 : > > 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 han

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

2013-09-26 Thread Wander Lairson Costa
2013/9/25 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 lib

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 hi

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

2013-09-24 Thread Wander Lairson Costa
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 short, I need to differentiate left-shift and right-shift modifiers, but I didn't fi