[PATCH weston] shell: Update surface_opacity_binding() to work with recent alpha value changes.

2012-05-21 Thread Scott Moreau
--- src/shell.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shell.c b/src/shell.c index a4a98c7..f7b9527 100644 --- a/src/shell.c +++ b/src/shell.c @@ -1598,7 +1598,7 @@ surface_opacity_binding(struct wl_seat *seat, uint32_t time, uint

Re: Weston running on Ubuntu 11.10 : Query on libEGL debug output

2012-05-21 Thread Pekka Paalanen
On Mon, 21 May 2012 17:40:28 + wrote: > From the above log, it seems that libEGL debug logs are occuring twice. Yes, they are two different programs running. Their output is just interleaved. > One set with > libEGL debug: Native platform type: drm (autodetected) That comes from Weston,

[PATCH weston 4/4 v5] Implement animated zoom transitions.

2012-05-21 Thread Scott Moreau
--- Rebased on top of patch 1 in this series. src/compositor.c | 206 -- src/compositor.h | 45 src/shell.c | 14 +--- src/util.c |7 +- 4 files changed, 222 insertions(+), 50 deletions(-) diff --git a/src/comp

[PATCH weston 3/4 v3] Center zoom area for text cursor position.

2012-05-21 Thread Scott Moreau
Here we install the logic for 'zoom area centered on a given point'. --- Rebased on top of patch 1 in this series. src/compositor.c | 27 +-- src/compositor.h |2 +- src/shell.c |2 +- 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/src/comp

[PATCH weston 2/4 v3] Restructure output zoom.

2012-05-21 Thread Scott Moreau
A quick clean-up of zoom to prepare for the other patches in this series. --- Rebased on top of patch 1 in this series. src/compositor.c | 20 ++-- src/compositor.h |1 - src/shell.c | 13 - 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a

[PATCH weston 1/4 v3] Implement text cursor position protocol.

2012-05-21 Thread Scott Moreau
Here we create a new client/compositor interface in weston to allow clients to report their x/y cursor position to the compositor. These values are then used to center the zoom area on this point. This is useful for everyone, especially people who are visually impaired. --- Refactored weston_text_

Re: Weston running on Ubuntu 11.10 : Query on libEGL debug output

2012-05-21 Thread Alex Wu
? 2012/5/22 1:40, souvik.da...@wipro.com ??: Script done on Monday 21 May 2012 07:05:43 PM IST > From the above log, it seems that libEGL debug logs are occuring twice. One set with libEGL debug: Native platform type: drm (autodetected) .. and other set with libEGL debug: Native p

[PATCH 2/2] xwayland/window-manager.c: Remove unnecessary arg from weston_wm_activate().

2012-05-21 Thread Scott Moreau
--- src/xwayland/window-manager.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/xwayland/window-manager.c b/src/xwayland/window-manager.c index b64a6e5..e38f64b 100644 --- a/src/xwayland/window-manager.c +++ b/src/xwayland/window-manager.c @@ -428,9 +428,10 @@

[PATCH 1/2] xwayland/window-manager.c: Use container_of to get the wm pointer since window may be NULL.

2012-05-21 Thread Scott Moreau
--- src/xwayland/window-manager.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/xwayland/window-manager.c b/src/xwayland/window-manager.c index b05f4ac..b64a6e5 100644 --- a/src/xwayland/window-manager.c +++ b/src/xwayland/window-manager.c @@ -456,7 +456,7 @@ weston

[PATCH weston 4/4 v4] Implement animated zoom transitions.

2012-05-21 Thread Scott Moreau
--- Rebased against master, 380deee3c7b18574d66511287bb01dde51027fbf src/compositor.c | 206 -- src/compositor.h | 45 src/shell.c | 14 +--- src/util.c |7 +- 4 files changed, 222 insertions(+), 50 deletions(-)

[PATCH weston 3/4 v2] Center zoom area for text cursor position.

2012-05-21 Thread Scott Moreau
Here we install the logic for 'zoom area centered on a given point'. --- Rebased against master, 380deee3c7b18574d66511287bb01dde51027fbf src/compositor.c | 29 ++--- src/compositor.h |2 +- src/shell.c |2 +- 3 files changed, 24 insertions(+), 9 deletions(

[PATCH weston 2/4 v2] Restructure output zoom.

2012-05-21 Thread Scott Moreau
A quick clean-up of zoom to prepare for the other patches in this series. --- Rebased against master, 380deee3c7b18574d66511287bb01dde51027fbf src/compositor.c | 20 ++-- src/compositor.h |1 - src/shell.c | 13 - 3 files changed, 18 insertions(+), 16 del

[PATCH weston 1/4 v2] Implement text cursor position protocol.

2012-05-21 Thread Scott Moreau
Here we create a new client/compositor interface in weston to allow clients to report their x/y cursor position to the compositor. These values are then used to center the zoom area on this point. This is useful for everyone, especially people who are visually impaired. --- Rebased against master,

Re: [PATCH 4/4] Implement animated zoom transitions.

2012-05-21 Thread Scott Moreau
v3 fixes crash with multi-output. (Apparently I didn't save the patch after adding the 'what changed' message) ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel

[PATCH 4/4] Implement animated zoom transitions.

2012-05-21 Thread Scott Moreau
--- src/compositor.c | 206 -- src/compositor.h | 45 src/shell.c | 14 +--- src/util.c |7 +- 4 files changed, 222 insertions(+), 50 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index b0b0f75..1

[PATCH] compositor: Check buffer is valid after retrieving it from the resource

2012-05-21 Thread Rob Bradford
From: Rob Bradford --- src/compositor.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compositor.c b/src/compositor.c index ba201af..83305f3 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -2006,12 +2006,12 @@ pointer_attach(struct wl_client *client, s

Re: [PATCH] shell: Remove fading animation from animation list when surface destroyed

2012-05-21 Thread Scott Moreau
> --- > src/shell.c |3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/src/shell.c b/src/shell.c > index 52c21e5..60f8643 100644 > --- a/src/shell.c > +++ b/src/shell.c > @@ -1200,6 +1200,9 @@ destroy_shell_surface(struct shell_surface *shsurf) >shsurf->surface

Re: [PATCH] shell: Remove fading animation from animation list when surface destroyed

2012-05-21 Thread Kristian Høgsberg
On Mon, May 21, 2012 at 06:04:15PM +0100, Rob Bradford wrote: > From: Rob Bradford Thanks, applied. > Fixes crash with a backtrace like this: > > ==2418== Invalid read of size 8 > ==2418==at 0x8AC5B70: unresponsive_fade_frame (shell.c:374) > ==2418==by 0x409FE0: weston_output_finish_fra

Weston running on Ubuntu 11.10 : Query on libEGL debug output

2012-05-21 Thread souvik.datta
Hello, I am running weston and simple-egl successfully on terminal (CTRL+ALT+F1). As at present I am trying to understand the functioning of Wayland as my final target is to port the same on an embedded platform without X display server and running GTK port of Webkit browser. Following is the

[PATCH] shell: Remove fading animation from animation list when surface destroyed

2012-05-21 Thread Rob Bradford
From: Rob Bradford Fixes crash with a backtrace like this: ==2418== Invalid read of size 8 ==2418==at 0x8AC5B70: unresponsive_fade_frame (shell.c:374) ==2418==by 0x409FE0: weston_output_finish_frame (compositor.c:1060) ==2418==by 0x567043B: wl_event_loop_dispatch (event-loop.c:389) =

Re: [PATCH 2/6 weston] window: send transient flags over the wire

2012-05-21 Thread Kristian Høgsberg
On Mon, May 21, 2012 at 04:47:46PM +0300, Tiago Vignatti wrote: > Signed-off-by: Tiago Vignatti > --- > clients/window.c |4 ++-- > clients/window.h |2 +- > 2 files changed, 3 insertions(+), 3 deletions(-) Committed. Kristian > diff --git a/clients/window.c b/clients/window.c > index d

Re: [PATCH wayland] protocol: use transient flags for activate or not surfaces

2012-05-21 Thread Kristian Høgsberg
On Mon, May 21, 2012 at 04:47:44PM +0300, Tiago Vignatti wrote: > Signed-off-by: Tiago Vignatti > --- > TODO |3 --- > protocol/wayland.xml |4 > 2 files changed, 4 insertions(+), 3 deletions(-) > > diff --git a/TODO b/TODO > index c8dcbac..4e8002d 100644 > --- a/TOD

Re: [PATCH 4/6 weston] clients: desktop-shell: show tooltip for panel items

2012-05-21 Thread Kristian Høgsberg
On Mon, May 21, 2012 at 04:47:48PM +0300, Tiago Vignatti wrote: > A timer is set whenever there's pointer motion inside a panel launcher item; > if the pointer stills inside the item after stopped for 500ms, then tooltip > shows up. I think most of this should be part of the tooltip code in window

Re: [PATCH 6/6 weston] xserver: send input focus only for top-level windows

2012-05-21 Thread Kristian Høgsberg
On Mon, May 21, 2012 at 04:47:50PM +0300, Tiago Vignatti wrote: > Signed-off-by: Tiago Vignatti > --- > src/xserver-launcher.c |6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/src/xserver-launcher.c b/src/xserver-launcher.c > index 414c06a..adc73af 100644 > --- a/src/xserver-lau

Re: [PATCH 1/6 weston] shell: use transient flags for activate or not new surfaces

2012-05-21 Thread Kristian Høgsberg
On Mon, May 21, 2012 at 04:47:45PM +0300, Tiago Vignatti wrote: > Inactive surfaces doesn't set keyboard focus, so it can be used for tooltips, > toolbars and some other type of windows. > > This requires protocol side changes. > > Signed-off-by: Tiago Vignatti > --- > src/shell.c |3 +++ >

[PATCH] xwm: fix invalid read weston_wm_window_draw_decoration

2012-05-21 Thread Tiago Vignatti
we cannot delete the pointer inside find_depth cause later cairo_xcb_surface_create_with_xrender_format will need it. Signed-off-by: Tiago Vignatti --- src/xserver-launcher.c |9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/xserver-launcher.c b/src/xserver-laun

[PATCH 6/6 weston] xserver: send input focus only for top-level windows

2012-05-21 Thread Tiago Vignatti
Signed-off-by: Tiago Vignatti --- src/xserver-launcher.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/src/xserver-launcher.c b/src/xserver-launcher.c index 414c06a..adc73af 100644 --- a/src/xserver-launcher.c +++ b/src/xserver-launcher.c @@ -759,6 +759,12 @@ static void weston_wm

[PATCH 5/6 weston] xserver: map transient windows into shell surface

2012-05-21 Thread Tiago Vignatti
Signed-off-by: Tiago Vignatti --- src/xserver-launcher.c | 40 ++-- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/src/xserver-launcher.c b/src/xserver-launcher.c index 82b7693..414c06a 100644 --- a/src/xserver-launcher.c +++ b/src/xserver-la

[PATCH 4/6 weston] clients: desktop-shell: show tooltip for panel items

2012-05-21 Thread Tiago Vignatti
A timer is set whenever there's pointer motion inside a panel launcher item; if the pointer stills inside the item after stopped for 500ms, then tooltip shows up. Signed-off-by: Tiago Vignatti --- clients/desktop-shell.c | 81 +++ 1 file changed, 81

[PATCH 3/6 weston] window: add simple text tooltip handlers

2012-05-21 Thread Tiago Vignatti
Using set_transient. Signed-off-by: Tiago Vignatti --- clients/window.c | 86 ++ clients/window.h |6 2 files changed, 92 insertions(+) diff --git a/clients/window.c b/clients/window.c index 5c4d28b..0d0c1d9 100644 --- a/clients/win

[PATCH 2/6 weston] window: send transient flags over the wire

2012-05-21 Thread Tiago Vignatti
Signed-off-by: Tiago Vignatti --- clients/window.c |4 ++-- clients/window.h |2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clients/window.c b/clients/window.c index d7b2e5c..5c4d28b 100644 --- a/clients/window.c +++ b/clients/window.c @@ -2695,7 +2695,7 @@ window_c

[PATCH 1/6 weston] shell: use transient flags for activate or not new surfaces

2012-05-21 Thread Tiago Vignatti
Inactive surfaces doesn't set keyboard focus, so it can be used for tooltips, toolbars and some other type of windows. This requires protocol side changes. Signed-off-by: Tiago Vignatti --- src/shell.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shell.c b/src/shell.c index 52c

[PATCH wayland] protocol: use transient flags for activate or not surfaces

2012-05-21 Thread Tiago Vignatti
Signed-off-by: Tiago Vignatti --- TODO |3 --- protocol/wayland.xml |4 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index c8dcbac..4e8002d 100644 --- a/TODO +++ b/TODO @@ -63,9 +63,6 @@ ICCCM recommended types for text or images, typ

mapping X transient windows into shell

2012-05-21 Thread Tiago Vignatti
Thanks for reviewing and pulling some of the patches, Kristian! I decided now to cook the patches without touch any xwm code -- we can tackle this next then. So following is an updated version. You still haven't commented anything regarding the tooltip example for toytoolkit I've introduced, so

Re: Spring visualisation (Re: [PATCH weston 4/4 v1] Implement animated zoom transitions.)

2012-05-21 Thread Scott Moreau
> > Hi, > > when I was briefly fighting with springs last year, I used the attached > files to visualise the spring behaviour. It runs the spring with > hardcoded values, dumps data into a text file, and renders it with > gnuplot. Usage: > > $ sh spring.c > > But before using, one should make sure

[PATCH weston 4/4 v2] Implement animated zoom transitions.

2012-05-21 Thread Scott Moreau
--- I noticed that dual output was broken so I fixed it up a bit. There is still a reproducible crash when zooming one output and then another, when both are animating simultaneously. One of the output's animations is removed when it finishes and then for some reason, there is a bogus animation po

Spring visualisation (Re: [PATCH weston 4/4 v1] Implement animated zoom transitions.)

2012-05-21 Thread Pekka Paalanen
On Mon, 21 May 2012 00:33:21 -0600 Scott Moreau wrote: > This patch introduces animated transitions for zoom. It uses springs to drive > the animations but there were some problems, so there are a couple of things > that have to be done to make this happen. First, the spring timestamp is set > wi