Re: Wayland Live CD now switching to Mir

2014-04-01 Thread Wander Lairson Costa
iki do you mean? > You might want to give a look on the calendar... -- Best Regards, Wander Lairson Costa ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Re: [xkbcommon] Use an integer type for modifiers bit mask.

2013-10-04 Thread Wander Lairson Costa
2013/10/4 Thiago Macieira : > On sexta-feira, 4 de outubro de 2013 09:09:32, Wander Lairson Costa wrote: >> The issued raised when I took code from window.c in the weston clients: >> >> mask = xkb_state_serialize_

Re: [xkbcommon] Use an integer type for modifiers bit mask.

2013-10-04 Thread Wander Lairson Costa
2013/10/4 David Herrmann : > Hi > > On Fri, Oct 4, 2013 at 2:34 PM, Daniel Stone wrote: >> On 4 October 2013 13:09, Wander Lairson Costa >> wrote: >>> That's what the patch is about: avoid casts. Whenever you use a cast, >>> you are giving up the

Re: [xkbcommon] Use an integer type for modifiers bit mask.

2013-10-04 Thread Wander Lairson Costa
2013/10/4 Thiago Macieira : > On quinta-feira, 3 de outubro de 2013 23:03:44, Wander Lairson Costa wrote: >> If we combine two enum values, the result is not a valid enum value >> anymore, so it cannot be attributed to an enum variable. >> >> C++ compilers will compl

[xkbcommon] Use an integer type for modifiers bit mask.

2013-10-03 Thread Wander Lairson Costa
If we combine two enum values, the result is not a valid enum value anymore, so it cannot be attributed to an enum variable. C++ compilers will complain if such an assigment is done. Signed-off-by: Wander Lairson Costa --- src/state.c | 10 +- xkbcommon/xkbcommon.h | 8

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

2013-09-29 Thread Wander Lairson Costa
ngless > on their own, e.g. LShift, RShift, etc. But I haven't had the time to > implement this. > If this will be implemented in the future, I think I will handle the *Shift* modifier as *LShift* meanwhile. -- Best Regards, Wander Lairson Costa ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel

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

2013-09-27 Thread Wander Lairson Costa
t; >> >> >> Do you mean about the behavior when we have more than one keyboard >> >> attached to a seat? >> > >> > No, that should work seamlessly. I meant the replay of the key press >> > events (after

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]

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

Re: [xkbcommon] Make C++ happy.

2013-09-26 Thread Wander Lairson Costa
2013/9/26 Bill Spitzak : > Wander Lairson Costa wrote: > >> /** Flags for keymap compilation. */ >> enum xkb_keymap_compile_flags { >> +/** Do not apply any flag. */ >> +XKB_MAP_COMPILE_NO_FLAG = 0, >> /** Apparently you

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

2013-09-26 Thread Wander Lairson Costa
r > all, only the key events with an initial empty array. It should be easy > to check which way is it). > But this is an weston implementation detail, I guess, other compositors may not have the same behavior. -- Best Regards, Wander Lairson Costa ___

Re: [xkbcommon] Make C++ happy.

2013-09-26 Thread Wander Lairson Costa
2013/9/26 Ran Benita : > On Thu, Sep 26, 2013 at 09:35:33AM -0300, Wander Lairson Costa wrote: >> For most functions taking an enum flags parameter, we use 0 value to >> indicate that no flags should be applied. >> >> C++ has a stronger type system than C and will not

[xkbcommon] Make C++ happy.

2013-09-26 Thread Wander Lairson Costa
by: Wander Lairson Costa --- xkbcommon/xkbcommon.h | 9 + 1 file changed, 9 insertions(+) diff --git a/xkbcommon/xkbcommon.h b/xkbcommon/xkbcommon.h index 1480b1b..4627cea 100644 --- a/xkbcommon/xkbcommon.h +++ b/xkbcommon/xkbcommon.h @@ -360,6 +360,8 @@ xkb_keysym_get_name(xkb_keysym_t ke

[xkbcommon] Second try on *Make C++ happy* patch.

2013-09-26 Thread Wander Lairson Costa
I am resubmitting the patch with additional enums *zero* flags. Wander Lairson Costa (1): Make C++ happy. xkbcommon/xkbcommon.h | 9 + 1 file changed, 9 insertions(+) -- 1.8.1.2 ___ wayland-devel mailing list wayland-devel

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 &g

[xkbcommon] Make C++ happy.

2013-09-24 Thread Wander Lairson Costa
C++ has a stronger type system than C and will not implicitly convert int's to enum's. If we do not want to give any flags to xkb_context_new, we must pass 0 as its argument. Therefore, we create a valid xkb_context_flags enum 0 value to avoid ugly casts in C++. Signed-off-by: Wand

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

2013-09-24 Thread Wander Lairson Costa
x27;t figure out how to do that with libxkbcommon. I printed all modifiers names and there is just one "Shift" modifier, there aren't "LShift" and "RShift" like there are for control and alt key modifiers. [1] https://github.com/walac/blender-wayland

Re: [ANNOUNCE] libevdev - a library to wrap the evdev kernel interface

2013-06-27 Thread Wander Lairson Costa
2013/6/27 Peter Hutterer : > On Thu, Jun 27, 2013 at 11:15:03AM -0300, Wander Lairson Costa wrote: >> 2013/6/27 Peter Hutterer : >> > For the last month or so I've been spending some time on a helper library >> > for evdev devices. The motivation is two-fold: >

Re: [ANNOUNCE] libevdev - a library to wrap the evdev kernel interface

2013-06-27 Thread Wander Lairson Costa
ion return value whereas libevdev_new_from_fd returns it as an out parameter. Is there any implementation detail that prohibited you from making them returning the struct in the same way? My suggestion would be to choose a consistent approach, either returns the struct as the return value or as

Re: Wayland and Blender

2013-06-19 Thread Wander Lairson Costa
> This is more a problem for Linux distributions than for me. [snip] -- Best Regards, Wander Lairson Costa ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Wayland and Blender

2013-06-19 Thread Wander Lairson Costa
can run Weston under X. Forgive me if this question is too newbie, but I am a starter with Wayland. -- Best Regards, Wander Lairson Costa ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel