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

2014-05-05 Thread Srivardhan
Thanks pq, Jason. This was very helpful. Hi pq, The Wayland protocol dumper is interesting. Pardon me if am asking stupid questions. I was wondering how I could implement it. I compiled Weston on my Ubuntu 21.04 and executed it. Below are my understanding, correct me if am wrong.

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

2014-05-05 Thread Pekka Paalanen
On Mon, 05 May 2014 13:53:05 +0530 Srivardhan sri.heb...@samsung.com wrote: The Wayland protocol dumper is interesting. Pardon me if am asking stupid questions. I was wondering how I could implement it. I compiled Weston on my Ubuntu 21.04 and executed it. Below are my understanding, correct

[PATCH v4] shell: support window resizing using touchscreen

2014-05-05 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 v4] shell: support window resizing using touchscreen

2014-05-05 Thread Stanislav Vorobiov
* Updated the patch for latest weston changes * If we resize a window using touchscreen, then move it, then press maximize button, then press it again then window will not be at the same position when it was before maximizing, this is not fixed by adding grab-shsurf-resize_edges = 0 to

Re: [PATCH v3] client: extend error handling

2014-05-05 Thread Pekka Paalanen
On Wed, 30 Apr 2014 10:11:01 +0200 Marek Chalupa mchqwe...@gmail.com wrote: When an error occurs, wl_display_get_error() does not provide any way of getting know if it was a local error or if it was an error event, respectively what object caused the error and what the error was. This

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

2014-05-05 Thread Pekka Paalanen
On Wed, 30 Apr 2014 12:24:40 +0100 Neil Roberts n...@linux.intel.com wrote: This bumps the version of the wl_output interface to 3 and adds a separate event to report the output's name. --- protocol/wayland.xml | 13 - 1 file changed, 12 insertions(+), 1 deletion(-) diff

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

2014-05-05 Thread Ander Conselvan de Oliveira
From: Ander Conselvan de Oliveira ander.conselvan.de.olive...@intel.com Otherwise it might receive touch events. https://bugs.freedesktop.org/show_bug.cgi?id=78207 --- clients/window.c | 1 + 1 file changed, 1 insertion(+) diff --git a/clients/window.c b/clients/window.c index

[PATCH] shell: support zooming without a pointer device

2014-05-05 Thread Stanislav Vorobiov
This patch fixes weston crash when zooming using super + pgup/pgdn binding on systems without a pointer device (i.e. touchscreen only) Please apply http://lists.freedesktop.org/archives/wayland-devel/2014-May/014576.html first before trying this one out. Also, systems without a pointer device

[PATCH] shell: support zooming without a pointer device

2014-05-05 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 wayland 1/2] scanner: check wl_array_add result

2014-05-05 Thread U. Artie Eoff
Signed-off-by: U. Artie Eoff ullysses.a.e...@intel.com --- 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/scanner.c +++ b/src/scanner.c @@ -1039,7 +1039,7 @@

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

2014-05-05 Thread U. Artie Eoff
Signed-off-by: U. Artie Eoff ullysses.a.e...@intel.com --- 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/tests/connection-test.c +++ b/tests/connection-test.c @@ -516,6 +516,8 @@

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

2014-05-05 Thread U. Artie Eoff
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 NULL but still fall into the block due to the wl_closure_lookup 0

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

2014-05-05 Thread Pekka Paalanen
On Mon, 5 May 2014 17:02:15 +0300 Ander Conselvan de Oliveira conselv...@gmail.com wrote: From: Ander Conselvan de Oliveira ander.conselvan.de.olive...@intel.com Otherwise it might receive touch events. https://bugs.freedesktop.org/show_bug.cgi?id=78207 Hi, I added a comment to the bug,