Re: [Weston] More discussion about weston output relative motion algorithm

2014-05-06 Thread Pekka Paalanen
On Wed, 7 May 2014 03:26:56 + "Wang, Quanxian" wrote: > Thanks Pq's comment. Before you continue my comment, I mentioned one point. > This is output movement algorithm and it is completely different with > pre-configuration of output in weston.ini. > For output, no alive, no movement. > If y

RE: New to Wayland, Need suggestion on a starting point

2014-05-06 Thread Srivardhan
> -Original Message- > From: wayland-devel [mailto:wayland-devel- > boun...@lists.freedesktop.org] On Behalf Of Pekka Paalanen > Sent: Tuesday, May 06, 2014 5:22 PM > To: Srivardhan > Cc: 'Jason Ekstrand'; wayland-devel@lists.freedesktop.org > Subject: Re: New to Wayland, Need suggestion

[PATCH v2] doc: Added API documentation for wl_display_create function.

2014-05-06 Thread Srivardhan Hebbar
Signed-off-by: Srivardhan Hebbar --- src/wayland-server.c |9 + 1 file changed, 9 insertions(+) diff --git a/src/wayland-server.c b/src/wayland-server.c index f2b1b42..57b65ce 100644 --- a/src/wayland-server.c +++ b/src/wayland-server.c @@ -788,6 +788,15 @@ bind_display(struct wl_cli

RE: [Weston] More discussion about weston output relative motion algorithm

2014-05-06 Thread Wang, Quanxian
Thanks Pq's comment. Before you continue my comment, I mentioned one point. This is output movement algorithm and it is completely different with pre-configuration of output in weston.ini. For output, no alive, no movement. If you want to keep pre-configuration in weston.ini when output change, ju

[PATCH 1/2] cairo-util: Add frame_touch_motion support

2014-05-06 Thread Boyan Ding
--- shared/cairo-util.h | 3 +++ shared/frame.c | 24 2 files changed, 27 insertions(+) diff --git a/shared/cairo-util.h b/shared/cairo-util.h index 4493b0d..7aebb65 100644 --- a/shared/cairo-util.h +++ b/shared/cairo-util.h @@ -211,6 +211,9 @@ void frame_touch_up(

[PATCH 2/2] compositor-wayland: Add touch support

2014-05-06 Thread Boyan Ding
Adding touch support to weston's nested wayland backend to make testing easier. https://bugs.freedesktop.org/show_bug.cgi?id=77769 --- src/compositor-wayland.c | 95 1 file changed, 95 insertions(+) diff --git a/src/compositor-wayland.c b/src/comp

[PATCH 0/2] weston: Add touch support to nested wayland backend

2014-05-06 Thread Boyan Ding
The following two patches add touch support to weston's nested wayland backend to facilitate testing. The first one adds motion support to cairo-util and the second actually add the touch listeners in the compositor. I'm new to wayland and weston and this is my first work. So any advice is welcome

More build problems: dri2proto

2014-05-06 Thread Bill Spitzak
Okay, I am trying to build wayland again, from instructions, on a new machine. I am stuck trying to compile mesa: ./autogen.sh --prefix=$WLD --enable-gles2 --disable-gallium-egl --with-egl-platforms=x11,wayland,drm --enable-gbm --enable-shared-glapi --with-gallium-drivers=r300,r600,swra

[PATCH 2/5] clients: Use x*alloc routines for memory allocation

2014-05-06 Thread Bryce W. Harrington
Since these are all demo client programs, program termination is an appropriate response to an out-of-memory situation. Using these routines keeps the client code more concise. Signed-off-by: Bryce Harrington --- clients/calibrator.c|5 + clients/desktop-shell.c |5 +

[PATCH 4/5] clients: Use xzalloc instead of xcalloc when allocating single element

2014-05-06 Thread Bryce W. Harrington
Signed-off-by: Bryce Harrington --- clients/desktop-shell.c |2 +- clients/editor.c|2 +- clients/fullscreen.c|2 +- clients/subsurfaces.c |6 +++--- clients/window.c|4 ++-- clients/wscreensaver.c |2 +- 6 files changed, 9 insertions(+), 9 deletion

[PATCH 5/5] clients: Use xstrdup instead of strdup

2014-05-06 Thread Bryce W. Harrington
Signed-off-by: Bryce Harrington --- clients/editor.c | 12 ++-- clients/image.c|4 ++-- clients/keyboard.c | 12 ++-- clients/terminal.c |2 +- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/clients/editor.c b/clients/editor.c index bda3e91..ec

[PATCH 1/5] clients: Add xcalloc

2014-05-06 Thread Bryce W. Harrington
Signed-off-by: Bryce Harrington --- clients/window.c |8 clients/window.h |2 ++ 2 files changed, 10 insertions(+) diff --git a/clients/window.c b/clients/window.c index f12ce39..cfc1260 100644 --- a/clients/window.c +++ b/clients/window.c @@ -5647,3 +5647,11 @@ xrealloc(char *

[PATCH 3/5] clients: Use calloc instead of malloc/memset=0

2014-05-06 Thread Bryce W. Harrington
Signed-off-by: Bryce Harrington --- clients/editor.c |4 +--- clients/subsurfaces.c |8 ++-- clients/window.c | 13 ++--- 3 files changed, 5 insertions(+), 20 deletions(-) diff --git a/clients/editor.c b/clients/editor.c index 6ed76d4..b439d9e 100644 --- a/client

[PATCH 0/5] clients: Use the x*alloc routines

2014-05-06 Thread Bryce W. Harrington
As per our discussion last week, here's patches to convert client code to using xmalloc, xzalloc, xcalloc, and xstrdup where appropriate. I opted not to change nested.c, because it looked like errors were being propagated to a higher level for handling, and bombing out on OOM might not be desired?

[PATCH] clients: Initialize label in keyboard handling code

2014-05-06 Thread Bryce W. Harrington
Quells warning: clients/keyboard.c: In function ‘keyboard_handle_key.isra.5’: clients/keyboard.c:556:11: warning: ‘label’ may be used uninitialized in this function [-Wuninitialized] Signed-off-by: Bryce Harrington --- clients/keyboard.c |2 +- 1 file changed, 1 insertion(+), 1 deletio

Re: [PATCH weston 3/3] compositor-wayland: avoid possible NULL deref in handle_keymap

2014-05-06 Thread Kristian Høgsberg
On Tue, May 06, 2014 at 02:50:03PM -0700, U. Artie Eoff wrote: > If data is NULL, then we jumped to error which attempts to > dereference data. Instead, just close(fd) and return when > data is NULL. > > Signed-off-by: U. Artie Eoff All three look good, applied. Kristian > --- > src/composit

Re: [PATCH weston] Apply the zoom transformation before the output transformation

2014-05-06 Thread Kristian Høgsberg
On Tue, May 06, 2014 at 07:04:15PM +0100, Neil Roberts wrote: > The zoom translation is just a scale and a translate. The translation > is calculated based on the coordinates of the pointer which are in > global space. Previously the calculated translation was transformed by > the output transforma

Re: [PATCH weston] compositor-drm: Don't use vaapi recorder with unsupported formats

2014-05-06 Thread Kristian Høgsberg
On Tue, May 06, 2014 at 04:49:06PM +0300, Ander Conselvan de Oliveira wrote: > From: Ander Conselvan de Oliveira > > We only support recording with GBM_FORMAT_XRGB888 format, so don't try > to record if the output has a differnt format. That looks good, applied. Kristian > > https://bugs.free

Re: [PATCH wayland-web 6/6] xwayland: add xserver build options

2014-05-06 Thread Kristian Høgsberg
On Tue, May 06, 2014 at 04:25:40PM +0300, Pekka Paalanen wrote: > From: Pekka Paalanen > > With these, it will only install the Xwayland binary. No Xorg, no > modules, no cruft. Just 4 files in total here. Thanks for updating that, all applied. Kristian > --- > xserver.html | 4 +++- > 1 file

Re: [PATCH] wcap: Check for mmap and malloc return value in wcap decode module

2014-05-06 Thread Kristian Høgsberg
On Tue, May 06, 2014 at 03:54:49PM +0530, vivek wrote: > Checking for return value in main.c for wcap_decoder_create function > and mmap, malloc return value in wcap_decoder_create function to avoid > crashes Thanks, that looks better. Kristian > Signed-off-by: vivek > --- > wcap/main.c

Re: [PATCH] doc: Added API documentation for wl_display_create function.

2014-05-06 Thread Kristian Høgsberg
On Tue, May 06, 2014 at 03:52:12PM +0530, Srivardhan Hebbar wrote: > Signed-off-by: Srivardhan Hebbar > --- > src/wayland-server.c |9 + > 1 file changed, 9 insertions(+) > > diff --git a/src/wayland-server.c b/src/wayland-server.c > index f2b1b42..7b32848 100644 > --- a/src/wayland-

Re: [PATCH wayland] server: fix potential memleak and NULL deref

2014-05-06 Thread Kristian Høgsberg
On Mon, May 05, 2014 at 04:28:26PM -0700, U. Artie Eoff wrote: > If for some reason that errno is neither value (ENOMEM or > EINVAL), then prior to this patch, there would be a NULL > deref in wl_closure_lookup(...) at the "else if" conditional > when closure == NULL. Also, closure might not be NUL

Re: [PATCH wayland 2/2] connection-test: check malloc result

2014-05-06 Thread Kristian Høgsberg
On Mon, May 05, 2014 at 02:45:20PM -0700, U. Artie Eoff wrote: > Signed-off-by: U. Artie Eoff Applied, thanks. > --- > tests/connection-test.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tests/connection-test.c b/tests/connection-test.c > index 1213875..659bf68 100644 > --- a/te

Re: [PATCH wayland 1/2] scanner: check wl_array_add result

2014-05-06 Thread Kristian Høgsberg
On Mon, May 05, 2014 at 02:45:19PM -0700, U. Artie Eoff wrote: > Signed-off-by: U. Artie Eoff Thanks, applied. Kristian > --- > src/scanner.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/scanner.c b/src/scanner.c > index 622d4d8..dd1c7b6 100644 > --- a/src/scan

[PATCH weston 3/3] compositor-wayland: avoid possible NULL deref in handle_keymap

2014-05-06 Thread U. Artie Eoff
If data is NULL, then we jumped to error which attempts to dereference data. Instead, just close(fd) and return when data is NULL. Signed-off-by: U. Artie Eoff --- src/compositor-wayland.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/compositor-wayland.c b/src/c

[PATCH weston 2/3] compositor-wayland: assign the correct mode

2014-05-06 Thread U. Artie Eoff
Signed-off-by: U. Artie Eoff --- src/compositor-wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c index 35e99a6..3cd308f 100644 --- a/src/compositor-wayland.c +++ b/src/compositor-wayland.c @@ -1149,7 +1149,7 @@ wayla

[PATCH weston 1/3] compositor-wayland: free output before returning

2014-05-06 Thread U. Artie Eoff
Signed-off-by: U. Artie Eoff --- src/compositor-wayland.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c index 67f15be..35e99a6 100644 --- a/src/compositor-wayland.c +++ b/src/compositor-wayland.c @@ -1723,8 +1723,11 @@

Re: [PATCH weston] window.c: Set the input region of the tooltip to empty

2014-05-06 Thread Kristian Høgsberg
On Mon, May 05, 2014 at 05:02:15PM +0300, Ander Conselvan de Oliveira wrote: > From: Ander Conselvan de Oliveira > > Otherwise it might receive touch events. I think a better approach is to just hide the tooltip if it (or the panel) gets touch events. I don't think I agree with Pekka that we ca

[PATCH weston] Apply the zoom transformation before the output transformation

2014-05-06 Thread Neil Roberts
The zoom translation is just a scale and a translate. The translation is calculated based on the coordinates of the pointer which are in global space. Previously the calculated translation was transformed by the output transformation so that when the zoom transform is applied after the output trans

Re: Thoughts on getting surfaces to appear on the right output

2014-05-06 Thread Jasper St. Pierre
We solved this under X11 with the startup-notification protocol. Ryan Lortie has been looking at making a DBus-only startup-notification for other platforms like Wayland. Since there's an intersection here, I'm going to CC Ryan and have him provide his thoughts on this, so we don't have duplicate

[PATCH weston] compositor-drm: Don't use vaapi recorder with unsupported formats

2014-05-06 Thread Ander Conselvan de Oliveira
From: Ander Conselvan de Oliveira We only support recording with GBM_FORMAT_XRGB888 format, so don't try to record if the output has a differnt format. https://bugs.freedesktop.org/show_bug.cgi?id=78199 --- src/compositor-drm.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/compo

Re: [PATCH 1/3] protocol: Add an event to specify the name of an output

2014-05-06 Thread Neil Roberts
Pekka Paalanen writes: > were you aware of […] perhaps? :-) Ah, no, I hadn't noticed those patches. Oops! > Your series is almost identical to Quanxian's, except: > - wording differences, of course > - patch 2 checks if output->name is set before sending (can it ever be > NULL?) > - patch 2 m

Re: [PATCH] doc: Added API documentation for wl_display_create function.

2014-05-06 Thread Ander Conselvan de Oliveira
On 05/06/2014 04:17 PM, Ander Conselvan de Oliveira wrote: On 05/06/2014 01:22 PM, Srivardhan Hebbar wrote: Signed-off-by: Srivardhan Hebbar --- src/wayland-server.c |9 + 1 file changed, 9 insertions(+) diff --git a/src/wayland-server.c b/src/wayland-server.c index f2b1b42..7b3

[PATCH wayland-web 5/6] xwayland: add $ to shell commands

2014-05-06 Thread Pekka Paalanen
From: Pekka Paalanen Make the syntax look like in the main building page. --- xserver.html | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/xserver.html b/xserver.html index fc8cecb..bd4abb7 100644 --- a/xserver.html +++ b/xserver.html @@ -47,1

[PATCH wayland-web 3/6] xwayland: remove copy of weston-launch setup

2014-05-06 Thread Pekka Paalanen
From: Pekka Paalanen Just refer to the instructions on the main building page instead. --- xserver.html | 21 ++--- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/xserver.html b/xserver.html index eb1f146..75fb970 100644 --- a/xserver.html +++ b/xserver.html @@ -7

[PATCH wayland-web 6/6] xwayland: add xserver build options

2014-05-06 Thread Pekka Paalanen
From: Pekka Paalanen With these, it will only install the Xwayland binary. No Xorg, no modules, no cruft. Just 4 files in total here. --- xserver.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xserver.html b/xserver.html index bd4abb7..dd8ff30 100644 --- a/xserver.ht

[PATCH wayland-web 1/6] testing: how to check with a particular backend

2014-05-06 Thread Pekka Paalanen
From: Pekka Paalanen --- testing.html | 6 ++ 1 file changed, 6 insertions(+) diff --git a/testing.html b/testing.html index 21c0b7b..b199d82 100644 --- a/testing.html +++ b/testing.html @@ -63,10 +63,16 @@ The Weston maintainer(s) have the right to refuse any patches that are not accom b

[PATCH wayland-web 2/6] xwayland: merged to master

2014-05-06 Thread Pekka Paalanen
From: Pekka Paalanen Drop the branch that does not exist anymore. Drop DDX build instructions as not needed anymore. Ditto xorg.conf changes for the special DDXes. --- xserver.html | 65 +--- 1 file changed, 5 insertions(+), 60 deletions(-)

[PATCH wayland-web 4/6] xwayland: libepoxy needed

2014-05-06 Thread Pekka Paalanen
From: Pekka Paalanen --- xserver.html | 14 ++ 1 file changed, 14 insertions(+) diff --git a/xserver.html b/xserver.html index 75fb970..fc8cecb 100644 --- a/xserver.html +++ b/xserver.html @@ -42,6 +42,20 @@ xserver on 32-bit systems. +libepoxy + +The Xwayland server depends

Re: [PATCH] doc: Added API documentation for wl_display_create function.

2014-05-06 Thread Ander Conselvan de Oliveira
On 05/06/2014 01:22 PM, Srivardhan Hebbar wrote: Signed-off-by: Srivardhan Hebbar --- src/wayland-server.c |9 + 1 file changed, 9 insertions(+) diff --git a/src/wayland-server.c b/src/wayland-server.c index f2b1b42..7b32848 100644 --- a/src/wayland-server.c +++ b/src/wayland-ser

Re: [PATCH weston] window: Ignore input events from subsurfaces

2014-05-06 Thread Ander Conselvan de Oliveira
On 05/06/2014 03:40 PM, Pekka Paalanen wrote: On Tue, 6 May 2014 15:25:40 +0300 Ander Conselvan de Oliveira wrote: From: Ander Conselvan de Oliveira Toytoolkit was not designed to handle input from subsurfaces and instead it expects subsurfaces to have an empty input region. That way input

Re: [PATCH weston] window: Ignore input events from subsurfaces

2014-05-06 Thread Pekka Paalanen
On Tue, 6 May 2014 15:25:40 +0300 Ander Conselvan de Oliveira wrote: > From: Ander Conselvan de Oliveira > > Toytoolkit was not designed to handle input from subsurfaces and > instead it expects subsurfaces to have an empty input region. That way > input events for subsurfaces are generated on

[PATCH weston] window: Ignore input events from subsurfaces

2014-05-06 Thread Ander Conselvan de Oliveira
From: Ander Conselvan de Oliveira Toytoolkit was not designed to handle input from subsurfaces and instead it expects subsurfaces to have an empty input region. That way input events for subsurfaces are generated on the main surface and there is no need to convert coordinates before reporting the

Re: [PATCH] doc: Added API documentation for wl_display_create function.

2014-05-06 Thread Pekka Paalanen
On Tue, 06 May 2014 17:21:23 +0530 Srivardhan wrote: > > > > -Original Message- > > From: wayland-devel [mailto:wayland-devel- > > boun...@lists.freedesktop.org] On Behalf Of Pekka Paalanen > > Sent: Tuesday, May 06, 2014 5:03 PM > > To: Srivardhan Hebbar > > Cc: wayland-devel@lists.fre

Re: New to Wayland, Need suggestion on a starting point

2014-05-06 Thread Pekka Paalanen
On Tue, 06 May 2014 17:09:56 +0530 Srivardhan wrote: > Sorry, I did not understand it properly. It's not that it is > boring. :) Is the program like a snooper which captures all the > packets of Wayland server and Wayland client? A man-in-the-middle, to be more precise, but yes. Thanks, pq __

RE: [PATCH] doc: Added API documentation for wl_display_create function.

2014-05-06 Thread Srivardhan
> -Original Message- > From: wayland-devel [mailto:wayland-devel- > boun...@lists.freedesktop.org] On Behalf Of Pekka Paalanen > Sent: Tuesday, May 06, 2014 5:03 PM > To: Srivardhan Hebbar > Cc: wayland-devel@lists.freedesktop.org > Subject: Re: [PATCH] doc: Added API documentation for wl

[PATCH weston v2 3/5] data-device: fix crash on systems with no pointer device

2014-05-06 Thread Stanislav Vorobiov
--- src/data-device.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/data-device.c b/src/data-device.c index 6a81bc8..abab735 100644 --- a/src/data-device.c +++ b/src/data-device.c @@ -421,6 +421,7 @@ static void drag_grab_touch_down(struct weston_t

[PATCH weston v2 5/5] shared/frame: fix frame buttons for touchscreen

2014-05-06 Thread Stanislav Vorobiov
support frame buttons hovering with touchscreen and cancel button press if a touch was not released over the button that was pressed --- clients/window.c| 14 ++ shared/cairo-util.h |3 +++ shared/frame.c | 44 ++-- 3 files chang

[PATCH weston v2 1/5] shell: support window resizing using touchscreen

2014-05-06 Thread Stanislav Vorobiov
if the system doesn't have a pointer device common_surface_resize will crash on accessing seat->pointer->button_count. if the system does have a pointer device, but attempts to resize a window using touchscreen - nothing happens. here we implement separate window resizing path for seat->touch as it

[PATCH weston v2 2/5] shell: support zooming without a pointer device

2014-05-06 Thread Stanislav Vorobiov
if the system doesn't have a pointer device do_zoom will crash on accessing seat->pointer->x. here we implement zoom support on systems with a touchscreen, touchscreen's last touch point is simply used instead of pointer's current position --- desktop-shell/shell.c | 22 -- s

[PATCH weston v2 0/5] improving support for systems without a pointer device

2014-05-06 Thread Stanislav Vorobiov
upd: one more patch that fixes frame buttons reaction for touchscreens Stanislav Vorobiov (5): shell: support window resizing using touchscreen shell: support zooming without a pointer device data-device: fix crash on systems with no pointer device exposay: support systems without a pointe

[PATCH weston v2 4/5] exposay: support systems without a pointer device

2014-05-06 Thread Stanislav Vorobiov
if the system doesn't have a pointer device exposay_transition_active will crash in weston_pointer_start_grab(seat->pointer, ...). here we fix that and also implement exposay support on systems with a touchscreen --- desktop-shell/exposay.c | 95 --- d

RE: New to Wayland, Need suggestion on a starting point

2014-05-06 Thread Srivardhan
> -Original Message- > From: wayland-devel [mailto:wayland-devel- > boun...@lists.freedesktop.org] On Behalf Of Pekka Paalanen > Sent: Tuesday, May 06, 2014 4:21 PM > To: Srivardhan > Cc: 'Jason Ekstrand'; wayland-devel@lists.freedesktop.org > Subject: Re: New to Wayland, Need suggestion

Re: [PATCH] doc: Added API documentation for wl_display_create function.

2014-05-06 Thread Pekka Paalanen
On Tue, 06 May 2014 15:52:12 +0530 Srivardhan Hebbar wrote: > Signed-off-by: Srivardhan Hebbar > --- > src/wayland-server.c |9 + > 1 file changed, 9 insertions(+) > > diff --git a/src/wayland-server.c b/src/wayland-server.c > index f2b1b42..7b32848 100644 > --- a/src/wayland-serve

Re: New to Wayland, Need suggestion on a starting point

2014-05-06 Thread Pekka Paalanen
On Tue, 06 May 2014 15:59:58 +0530 Srivardhan wrote: > > > -Original Message- > > From: wayland-devel [mailto:wayland-devel- > > boun...@lists.freedesktop.org] On Behalf Of Pekka Paalanen > > Sent: Monday, May 05, 2014 5:36 PM > > To: Srivardhan > > Cc: 'Jason Ekstrand'; wayland-devel@li

RE: New to Wayland, Need suggestion on a starting point

2014-05-06 Thread Srivardhan
> -Original Message- > From: wayland-devel [mailto:wayland-devel- > boun...@lists.freedesktop.org] On Behalf Of Pekka Paalanen > Sent: Monday, May 05, 2014 5:36 PM > To: Srivardhan > Cc: 'Jason Ekstrand'; wayland-devel@lists.freedesktop.org > Subject: Re: New to Wayland, Need suggestion o

[PATCH] doc: Added API documentation for wl_display_create function.

2014-05-06 Thread Srivardhan Hebbar
Signed-off-by: Srivardhan Hebbar --- src/wayland-server.c |9 + 1 file changed, 9 insertions(+) diff --git a/src/wayland-server.c b/src/wayland-server.c index f2b1b42..7b32848 100644 --- a/src/wayland-server.c +++ b/src/wayland-server.c @@ -788,6 +788,15 @@ bind_display(struct wl_cli

[PATCH] wcap: Check for mmap and malloc return value in wcap decode module

2014-05-06 Thread vivek
Checking for return value in main.c for wcap_decoder_create function and mmap, malloc return value in wcap_decoder_create function to avoid crashes Signed-off-by: vivek --- wcap/main.c|4 wcap/wcap-decode.c |9 + 2 files changed, 13 insertions(+) diff --git a/wcap/m

[PATCH weston 2/4] shell: support zooming without a pointer device

2014-05-06 Thread Stanislav Vorobiov
if the system doesn't have a pointer device do_zoom will crash on accessing seat->pointer->x. here we implement zoom support on systems with a touchscreen, touchscreen's last touch point is simply used instead of pointer's current position --- desktop-shell/shell.c | 22 -- s

[PATCH weston 4/4] exposay: support systems without a pointer device

2014-05-06 Thread Stanislav Vorobiov
if the system doesn't have a pointer device exposay_transition_active will crash in weston_pointer_start_grab(seat->pointer, ...). here we fix that and also implement exposay support on systems with a touchscreen --- desktop-shell/exposay.c | 95 --- d

[PATCH weston 1/4] shell: support window resizing using touchscreen

2014-05-06 Thread Stanislav Vorobiov
if the system doesn't have a pointer device common_surface_resize will crash on accessing seat->pointer->button_count. if the system does have a pointer device, but attempts to resize a window using touchscreen - nothing happens. here we implement separate window resizing path for seat->touch as it

[PATCH weston 0/4] improving support for systems without a pointer device

2014-05-06 Thread Stanislav Vorobiov
I've grouped these patches: http://lists.freedesktop.org/archives/wayland-devel/2014-May/014576.html http://lists.freedesktop.org/archives/wayland-devel/2014-May/014580.html into a patchset, I've also added 2 more: one that fixes dnd crash and one that adds touchscreen support to exposay Stanisl

[PATCH weston 3/4] data-device: fix crash on systems with no pointer device

2014-05-06 Thread Stanislav Vorobiov
--- src/data-device.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/data-device.c b/src/data-device.c index 6a81bc8..a80f271 100644 --- a/src/data-device.c +++ b/src/data-device.c @@ -650,11 +650,13 @@ data_device_start_drag(struct wl_client *client, s

Re: [Weston] More discussion about weston output relative motion algorithm

2014-05-06 Thread Pekka Paalanen
On Tue, 6 May 2014 07:26:32 + "Wang, Quanxian" wrote: > > > > -Original Message- > > From: Pekka Paalanen [mailto:ppaala...@gmail.com] > > Sent: Tuesday, May 6, 2014 2:36 PM > > To: Wang, Quanxian > > Cc: wayland-devel@lists.freedesktop.org; Jason Ekstrand > > (ja...@jlekstrand.net)

RE: [Weston] More discussion about weston output relative motion algorithm

2014-05-06 Thread Wang, Quanxian
> -Original Message- > From: Pekka Paalanen [mailto:ppaala...@gmail.com] > Sent: Tuesday, May 6, 2014 2:36 PM > To: Wang, Quanxian > Cc: wayland-devel@lists.freedesktop.org; Jason Ekstrand > (ja...@jlekstrand.net); Bryce W. Harrington (b.harring...@samsung.com); > Fu, Michael; Hardening (

Re: Thoughts on getting surfaces to appear on the right output

2014-05-06 Thread Pekka Paalanen
On Fri, 02 May 2014 19:22:39 +0100 Neil Roberts wrote: > Hi, > > Currently Weston has a problem that it always puts new surfaces on the > same output as the one the first pointer is in. I guess the idea is > that most of the time surfaces are created as a result of mouse > events and there is us