[PATCH weston 2/2] window: Don't set pointer image when requesting to move a surface

2012-10-18 Thread Jonas Ådahl
Since it's the server who moves the surface it's the server who sets the pointer image. Signed-off-by: Jonas Ådahl --- clients/window.c |1 - 1 file changed, 1 deletion(-) diff --git a/clients/window.c b/clients/window.c index 118dce5..8aeb837 100644 --- a/clients/window.c +++ b/clients/win

[PATCH weston 1/2] window: Only set menu element when menu widget is focused

2012-10-18 Thread Jonas Ådahl
Motion handlers are called for either grabbed or focused widgets. If a menu is displayed, thus grabbed, motion events relative to the parent surface are delivered to the menu widget motion handler even though it is not in focus. By checking that the menu widget is the focused one we can avoid setti

Re: [PATCH 2/2] wayland-util: Rename ARRAY_LENGTH -> __WL_ARRAY_LENGTH

2012-10-18 Thread Chad Versace
On 10/18/2012 01:48 PM, Kristian Høgsberg wrote: > On Thu, Oct 18, 2012 at 4:27 PM, David Herrmann > wrote: >> Hi Chad >> >> On Thu, Oct 18, 2012 at 9:45 PM, Chad Versace >> wrote: >>> On 10/18/2012 12:35 PM, Chad Versace wrote: On 10/18/2012 10:23 AM, Pekka Paalanen wrote: > On Thu, 18

Re: wayland seat structure

2012-10-18 Thread Scott Moreau
On Thu, Oct 18, 2012 at 2:46 PM, Keller Alexander-B42067 < b42...@freescale.com> wrote: > I am new to using the Wayland API, and I was just wondering about the > seat structure. I was reading the documentation on the Wayland website and > read that the seat structure takes care of device events a

wayland seat structure

2012-10-18 Thread Keller Alexander-B42067
I am new to using the Wayland API, and I was just wondering about the seat structure. I was reading the documentation on the Wayland website and read that the seat structure takes care of device events and maintains device focus. (such as the keyboard, touch, and pointer) My question is what f

Re: [PATCH 2/2] wayland-util: Rename ARRAY_LENGTH -> __WL_ARRAY_LENGTH

2012-10-18 Thread Kristian Høgsberg
On Thu, Oct 18, 2012 at 4:27 PM, David Herrmann wrote: > Hi Chad > > On Thu, Oct 18, 2012 at 9:45 PM, Chad Versace > wrote: >> On 10/18/2012 12:35 PM, Chad Versace wrote: >>> On 10/18/2012 10:23 AM, Pekka Paalanen wrote: On Thu, 18 Oct 2012 09:15:08 -0700 Chad Versace wrote: >

Re: [PATCH 2/2] wayland-util: Rename ARRAY_LENGTH -> __WL_ARRAY_LENGTH

2012-10-18 Thread David Herrmann
Hi Chad On Thu, Oct 18, 2012 at 9:45 PM, Chad Versace wrote: > On 10/18/2012 12:35 PM, Chad Versace wrote: >> On 10/18/2012 10:23 AM, Pekka Paalanen wrote: >>> On Thu, 18 Oct 2012 09:15:08 -0700 >>> Chad Versace wrote: >>> wayland-util.h defined an unprefixed macro, ARRAY_LENGTH, which poll

Re: [PATCH 2/2] wayland-util: Rename ARRAY_LENGTH -> __WL_ARRAY_LENGTH

2012-10-18 Thread Chad Versace
On 10/18/2012 12:35 PM, Chad Versace wrote: > On 10/18/2012 10:23 AM, Pekka Paalanen wrote: >> On Thu, 18 Oct 2012 09:15:08 -0700 >> Chad Versace wrote: >> >>> wayland-util.h defined an unprefixed macro, ARRAY_LENGTH, which polluted >>> the global namespace. This caused symbol collisions in projec

Re: [PATCH 2/2] wayland-util: Rename ARRAY_LENGTH -> __WL_ARRAY_LENGTH

2012-10-18 Thread Chad Versace
On 10/18/2012 10:23 AM, Pekka Paalanen wrote: > On Thu, 18 Oct 2012 09:15:08 -0700 > Chad Versace wrote: > >> wayland-util.h defined an unprefixed macro, ARRAY_LENGTH, which polluted >> the global namespace. This caused symbol collisions in projects that >> defined ARRAY_LENGTH slightly different

Re: [PATCH 2/2] wayland-util: Rename ARRAY_LENGTH -> __WL_ARRAY_LENGTH

2012-10-18 Thread Pekka Paalanen
On Thu, 18 Oct 2012 09:15:08 -0700 Chad Versace wrote: > wayland-util.h defined an unprefixed macro, ARRAY_LENGTH, which polluted > the global namespace. This caused symbol collisions in projects that > defined ARRAY_LENGTH slightly differently. > > Signed-off-by: Chad Versace Hi Chad, do you

[PATCH 2/2] wayland-util: Rename ARRAY_LENGTH -> __WL_ARRAY_LENGTH

2012-10-18 Thread Chad Versace
wayland-util.h defined an unprefixed macro, ARRAY_LENGTH, which polluted the global namespace. This caused symbol collisions in projects that defined ARRAY_LENGTH slightly differently. Signed-off-by: Chad Versace --- cursor/wayland-cursor.c | 2 +- src/connection.c| 6 +++--- src/event

[PATCH 1/2] wayland-util: Remove container_of()

2012-10-18 Thread Chad Versace
wayland-util.h defined two variants of the container_of macro: __wl_container_of() and an unprefixed container_of(). The unprefixed variant, of course, polluted the global namespace and caused symbol collisions in projects that defined container_of slightly differently. This patch removes the defi

Re: [PATCH weston] simple-shm: Don't use ret variable in main() uninitialized

2012-10-18 Thread Ander Conselvan de Oliveira
On 10/17/2012 11:53 PM, Kristian Høgsberg wrote: On Wed, Oct 17, 2012 at 01:49:08PM +0300, Ander Conselvan de Oliveira wrote: Argh, thanks. I don't get a warning about ret being unused, and I did check the -Wall was in the compiler flags... I'm not really sure, but it looks like http://gcc