Re: [PATCH wayland 4/7 v3] Add support for custom dispatchers

2013-02-20 Thread Pekka Paalanen
Hi Jason, you forgot to CC wayland again. ;-) On Wed, 20 Feb 2013 10:23:28 -0600 Jason Ekstrand wrote: > On Wed, Feb 20, 2013 at 3:45 AM, Pekka Paalanen wrote: > > On Tue, 19 Feb 2013 16:09:21 -0600 > > Jason Ekstrand wrote: > > > >> > >> Signed-off-by: Jason Ekstrand > >> --- > >> This vers

Re: [PATCH 00/13] Clean up text protocol and move to wayland

2013-02-20 Thread Jan Arne Petersen
On 19.02.2013 22:31, Pekka Vuorela wrote: > On 19.02.2013 22:11, Jan Arne Petersen wrote: >> On 19.02.2013 20:01, Yichao Yu wrote: >>> On Tue, Feb 19, 2013 at 1:26 PM, Jan Arne Petersen >>> wrote: From: Jan Arne Petersen This series finalizes the first version of the text protocol

Re: [PATCH 00/13] Clean up text protocol and move to wayland

2013-02-20 Thread Jan Arne Petersen
On 19.02.2013 21:38, Yichao Yu wrote: > On Tue, Feb 19, 2013 at 3:11 PM, Jan Arne Petersen > wrote: >> * im-client to send a key event >> - Already supported (input_method::keysym/input_method::key) > > Not really sure about this one, aren't these input_method::* requests > used to send key eve

Re: [PATCH 1/2] compositor: Make sure surface->transform.matrix,inverse are always valid

2013-02-20 Thread Kristian Høgsberg
On Wed, Feb 20, 2013 at 01:05:42PM +0200, Pekka Paalanen wrote: > On Tue, 19 Feb 2013 17:04:50 -0500 > Kristian Høgsberg wrote: > > > First step towards getting rid of the transform.enabled optimization. > > --- > > src/compositor.c | 11 +++ > > 1 file changed, 11 insertions(+) > > > >

[PATCH 2/2] compositor: Remove surface->transform.enabled

2013-02-20 Thread Kristian Høgsberg
We have matrix.type now and can rely on that for optimizing transformations and choosing fast-paths. --- shared/matrix.c | 15 +++ src/compositor-drm.c | 5 ++--- src/compositor-rpi.c | 2 +- src/compositor.c | 50 +- src/c

[PATCH v4] shell: grab the parent popup when a sub popup window is deleted or hidden

2013-02-20 Thread Giulio Camuffo
If the client opens a popup menu and submenu, when it closes or hides the submenu the pointer grab should return to the parent menu. Furthermore, when clicking outside the client area the popup_done event is sent to the active popup surface and recursively to its parent. --- src/shell.c | 57 +

[PATCH v5] compositor: call configure on surfaces with a null buffer too

2013-02-20 Thread Giulio Camuffo
This way the shell can know when a surface has been unmapped by checking the value returned by weston_surface_is_mapped(surface). The configure handlers have now width and height parameters, so they do not need anymore to check manually the buffer size. If a surface's buffer is NULL the width and h

[PATCH v4] compositor: call configure on surfaces with a null buffer too

2013-02-20 Thread Giulio Camuffo
This way the shell can know when a surface has been unmapped by checking the value returned by weston_surface_is_mapped(surface). The configure handlers have now width and height parameters, so they do not need anymore to check manually the buffer size. If a surface's buffer is NULL the width and h

[PATCH v3] compositor: call configure on surfaces with a null buffer too

2013-02-20 Thread Giulio Camuffo
This way the shell can know when a surface has been unmapped by checking the value returned by weston_surface_is_mapped(surface). The configure handlers have now width and height parameters, so they do not need anymore to check manually the buffer size. If a surface's buffer is NULL the width and h

[PATCH weston] window: fix display_acquire_window_surface()

2013-02-20 Thread Pekka Paalanen
Make sure that display_acquire_window_surface() creates the Cairo surface as necessary. Otherwise surface->toysurface can be NULL. This fixes weston-screensaver fullscreen mode. Demo mode was not affected as it uses window decorations, and so the Cairo surface is created. This regression was intro

Re: [PATCH 1/2] compositor: Make sure surface->transform.matrix,inverse are always valid

2013-02-20 Thread Pekka Paalanen
On Tue, 19 Feb 2013 17:04:50 -0500 Kristian Høgsberg wrote: > First step towards getting rid of the transform.enabled optimization. > --- > src/compositor.c | 11 +++ > 1 file changed, 11 insertions(+) > > diff --git a/src/compositor.c b/src/compositor.c > index 64d0830..07b95a9 100644

Re: [PATCH 1/2] compositor: call configure on surfaces with a null buffer too

2013-02-20 Thread Pekka Paalanen
On Tue, 19 Feb 2013 22:22:46 +0100 Giulio Camuffo wrote: > This way the shell can know when a surface has been unmapped by > checking the value of pending.remove_content. The configure handlers > must now make sure that the buffer exist though, by checking if > the surface's buffer_ref.buffer is

Re: Developing a core shell protocol

2013-02-20 Thread Pekka Paalanen
On Wed, 20 Feb 2013 00:20:04 -0800 Nick Kisialiou wrote: > Hi Pekka, > > It may indeed be a cleaner solution to have 2 compositors, a phone > compositor working as a client of the desktop/laptop compositor. In fact, > with proper nesting of multiple compositors you may effectively offer > multip

Re: [PATCH wayland 4/7 v3] Add support for custom dispatchers

2013-02-20 Thread Pekka Paalanen
On Tue, 19 Feb 2013 16:09:21 -0600 Jason Ekstrand wrote: > > Signed-off-by: Jason Ekstrand > --- > This version contains the documentation changes as requested by Pekka Paalanen > as well as the if-statement change suggested by Bill Spitzak. > > src/connection.c| 15 + > s

Re: Developing a core shell protocol

2013-02-20 Thread Nick Kisialiou
Hi Pekka, It may indeed be a cleaner solution to have 2 compositors, a phone compositor working as a client of the desktop/laptop compositor. In fact, with proper nesting of multiple compositors you may effectively offer multiple shells. It is definitely a good solution for an SDK. That said, I a