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

2014-05-14 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 v3 0/5] improving support for systems without a pointer device

2014-05-14 Thread Stanislav Vorobiov
This is v2 patch rebased against master. I've tested it on my systems, seems ok. The only thing I find strange is exposay animation, it looks like zoom in/out is reversed, but that happens without this patch as well, also, this happened with weston 1.4 Stanislav Vorobiov (5): shell: support

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

2014-05-14 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

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

2014-05-14 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 --

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

2014-05-14 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 ---

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

2014-05-14 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

Re: [PATCH 2/2] window: Make a roundtrip to ensure globals have been enumerated.

2014-05-14 Thread Pekka Paalanen
On Tue, 13 May 2014 22:54:36 +0200 Paul Liétar p...@lietar.net wrote: If the compositor enumerates the globals too slowly, the d-sum pointer is still NULL by the time create_cursors is called, and leads to a null pointer dereferencing. A roundtrip is needed to make sure all globals have

documentation for wl_egl_window_resize in libwayland-egl

2014-05-14 Thread Rohit Nandan
Hi , I was trying to issue wl_egl_window_resize just after wl_egl_window_create but could not find/search/research over what last two parameters of wl_egl_window_resize mean. In implementation it states it int dx,dy. But not even single line description of what these ints refer to. Though I

Re: documentation for wl_egl_window_resize in libwayland-egl

2014-05-14 Thread Pekka Paalanen
On Wed, 14 May 2014 15:21:37 +0530 Rohit Nandan pulkitnan...@gmail.com wrote: Hi , I was trying to issue wl_egl_window_resize just after wl_egl_window_create but could not find/search/research over what last two parameters of wl_egl_window_resize mean. In implementation it states it int

[PATCH] configure.ac: Change in build system to use the path from pkg-config for wayland-scanner.

2014-05-14 Thread Srivardhan Hebbar
This is a fix to the bug https://bugs.freedesktop.org/show_bug.cgi?id=78688. Signed-off-by: Srivardhan Hebbar sri.heb...@samsung.com --- configure.ac |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 031a26f..89965e2 100644 ---

Re: [PATCH] configure.ac: Change in build system to use the path from pkg-config for wayland-scanner.

2014-05-14 Thread Pekka Paalanen
On Wed, 14 May 2014 16:01:14 +0530 Srivardhan Hebbar sri.heb...@samsung.com wrote: This is a fix to the bug https://bugs.freedesktop.org/show_bug.cgi?id=78688. Signed-off-by: Srivardhan Hebbar sri.heb...@samsung.com --- configure.ac |4 +++- 1 file changed, 3 insertions(+), 1

Build dependencies

2014-05-14 Thread Soslan Khubulov
Hi there, I found Building Wayland page (http://wayland.freedesktop.org/building.html) lacks build dependencies. Just following that page I was unable to proceed any further, but after installing build dependencies from Raspberry Pi page (http://wayland.freedesktop.org/raspberrypi.html) I finally

Re: Build dependencies

2014-05-14 Thread Pekka Paalanen
On Wed, 14 May 2014 16:54:39 +0400 Soslan Khubulov sosl...@gmail.com wrote: Hi there, I found Building Wayland page (http://wayland.freedesktop.org/building.html) lacks build dependencies. Just following that page I was unable to proceed any further, but after installing build dependencies

Re: [PATCH 2/2] window: Make a roundtrip to ensure globals have been enumerated.

2014-05-14 Thread Paul Liétar
Le 14 mai 2014 à 10:14, Pekka Paalanen ppaala...@gmail.com a écrit : Hi Looks good! This is 1.5-stable stuff, and probably for all earlier stable branches, too. Excellent find, already proves that working on a middle-man dumper is useful. :-) In fact, adding a mode to the dumper program,

[PATCH 1/2] simple-touch: Make sure shm formats have been enumerated.

2014-05-14 Thread Paul Liétar
The first roundtrip only ensures the globals have been enumerated by the registry. After binding wl_shm, we need a new roundtrip to make sure the formats have been enumerated, otherwise we might check for has_argb too early. This is similar to the simple-shm example. Signed-off-by: Paul Liétar

Re: [PATCH] Destroy resources when destroying input and output

2014-05-14 Thread Neil Roberts
After looking at it a bit more I don't think we can really make the automatic zombie idea work. The trouble is that libwayland-server would need to know when the client has destroyed the proxy in order to destroy the zombie resource. However the destroy semantics are interface-dependent so only an

Re: [PATCH] Destroy resources when destroying input and output

2014-05-14 Thread Pekka Paalanen
On Wed, 14 May 2014 19:12:20 +0100 Neil Roberts n...@linux.intel.com wrote: After looking at it a bit more I don't think we can really make the automatic zombie idea work. The trouble is that libwayland-server would need to know when the client has destroyed the proxy in order to destroy the

Question about cairo-gl

2014-05-14 Thread Bill Spitzak
The wayland build instructions also include the building of pixman and cairo in order to enable the cairo gl backend. However I get the impression that weston does not use this unless a switch --with-cairo=gl is passed to configure. Only then does it produce calls to attempt to make a context

[PATCH] wcap: clean up resources on mmap or frame alloc failure.

2014-05-14 Thread U. Artie Eoff
Close the decoder-fd resource if mmap fails. Unmap the decoder-map and close the decoder-fd if the decoder-frame memory allocation fails. Although short-lived in the context of where wcap_decoder_create is currently used (i.e. in main), not closing the fd before returning NULL in these cases

[PATCH wayland-web] Build instructions updated with dependencies and config fixes

2014-05-14 Thread spitzak
From: Bill Spitzak spit...@gmail.com --- building.html | 396 - wayland.css |1 + xserver.html | 196 +++- 3 files changed, 386 insertions(+), 207 deletions(-) diff --git a/building.html b/building.html

Re: Question about cairo-gl

2014-05-14 Thread Stanislav Vorobiov
Hi, IMHO cairo gl isn't much tested/supported in weston since it has bad performance, you should probably just use sw cairo. Thanks. On 05/14/2014 11:56 PM, Bill Spitzak wrote: The wayland build instructions also include the building of pixman and cairo in order to enable the cairo gl