[PATCH] [weston, v4] weston.ini: Add natural scroll support to weston.ini This adds support for enabling/disabling natural scrolling via a boolean in weston.ini:

2017-01-27 Thread Jiayi Zhao
[libinput] natural_scroll=true CHANGES: - libinput_device_config_scroll_has_natural_scroll() is no longer compared to != 0 - added configuration option to weston.ini man page Signed-off-by: Jiayi Zhao --- compositor/main.c | 13 + man/weston.ini.man | 3 +++ weston.ini.in

[no subject]

2017-01-27 Thread Jiayi Zhao
This latest patch (v4) adds documentation for the new natural_scoll option in weston.ini via the weston.ini.man man page. Signed-off-by: Jiayi Zhao ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman

Re: [PATCH] [weston, v2] weston.ini: Add natural scroll support to weston.ini

2017-01-27 Thread Jiayi Zhao
Hey, okay, I'll make a new patch with updated weston.ini manual soon. Cheers, Jiayi On Jan 27, 2017 6:59 AM, "Pekka Paalanen" wrote: > On Sat, 22 Oct 2016 13:31:28 -0400 > Jiayi Zhao wrote: > > > This adds support for enabling/disabling natural scrolling > > via a boolean in weston.ini: > > >

RE: [Mesa-users] Is there a better way to validate wl_display passed in at eglGetDispaly()?

2017-01-27 Thread Ruei, Eric
Hi, Pekka: Thank you so much for your invaluable inputs and detailed explanations! Best regards, Eric -Original Message- From: Pekka Paalanen [mailto:ppaala...@gmail.com] Sent: Friday, January 27, 2017 6:18 PM To: Ruei, Eric Cc: mesa-us...@lists.freedesktop.org; wayland-devel@lists.f

Re: [Mesa-users] Is there a better way to validate wl_display passed in at eglGetDispaly()?

2017-01-27 Thread Pekka Paalanen
On Fri, 27 Jan 2017 18:29:18 + "Ruei, Eric" wrote: > To whom it may concern: > > We would like to bring your attention to a potential wayland-egl > issue with openCV Python script. > > The issue is that both Mesa and our mechanism to identify the > wl_display client from eglGetDIspaly() ca

[PATCH wayland v4] protocol: Define further the behavior of input on the presence of grabs

2017-01-27 Thread Carlos Garnacho
The leave events in the respective device interfaces has been further documented so those can convey the necessary info when input is being redirected out of their currently focused surface. Only wl_touch is missing something semantically similar, a wl_touch.leave event has been added so the touch

[PATCH weston 7/7] compositor: damage pending subsurfaces when committing them

2017-01-27 Thread Emilio Pozuelo Monfort
When a client changes the subsurfaces state, we need to damage them so the result is visible. We do that by flagging the surfaces when the state changes and causing damage when committing the state. This prevents normal repaints from considering these changes until a commit has happened, and allows

[PATCH weston 5/7] tests: put screenshots to ./logs by default

2017-01-27 Thread Emilio Pozuelo Monfort
From: Pekka Paalanen Logs is where we write all our custom test logs, let's also put the screenshots in the same place by default from cluttering the base directory. Signed-off-by: Pekka Paalanen Reviewed-by: Emilio Pozuelo Monfort --- tests/weston-test-client-helper.c | 5 +++-- 1 file chang

[PATCH weston 6/7] tests: add subsurface-shot test

2017-01-27 Thread Emilio Pozuelo Monfort
From: Pekka Paalanen This is marked as a FAIL_TEST, because the last image comparison fails due to a bug in Weston. Jointly authored by Pekka and Emilio. Signed-off-by: Pekka Paalanen Signed-off-by: Emilio Pozuelo Monfort --- Makefile.am | 12 +- tests/referenc

[PATCH weston 2/7] tests/shell: get rid of static variables

2017-01-27 Thread Emilio Pozuelo Monfort
From: Pekka Paalanen Stop using static variables and clean up when we're done. [Emilio: update to latest weston_layer API] Signed-off-by: Pekka Paalanen Signed-off-by: Emilio Pozuelo Monfort --- tests/weston-test-desktop-shell.c | 128 -- 1 file changed, 8

[PATCH weston 3/7] tests/shell: change background color

2017-01-27 Thread Emilio Pozuelo Monfort
From: Pekka Paalanen Pick the color 0xCC336699 as AARRGGBB, as if blended on black. This is the color used with developing the sub-surface shot tests. No other big reason than it should not be black to have better chances of catching blending problems. Signed-off-by: Pekka Paalanen --- tests/

[PATCH weston 1/7] tests: add test-desktop-shell

2017-01-27 Thread Emilio Pozuelo Monfort
From: Quentin Glidic This is a new desktop shell plugin, specifically written for tests. It implements the bare minimum of a WM with predictable window positioning. It offers a known static background without forking any helper clients and therefore avoids any races with executing screenshot-base

[PATCH weston 4/7] tests: implement get_test_name()

2017-01-27 Thread Emilio Pozuelo Monfort
From: Pekka Paalanen Screenshot tests often want to use the test name for writing out images. This is a helper to get the test name without writing it multiple times in the source. Signed-off-by: Pekka Paalanen Reviewed-by: Emilio Pozuelo Monfort --- tests/weston-test-runner.c | 21 ++

Re: [PATCH weston] ivi-shell: Damage view below after unmapping

2017-01-27 Thread Pekka Paalanen
On Fri, 27 Jan 2017 15:11:41 + "Ucan, Emre (ADITG/SW1)" wrote: > Hello Pekka, > > Thank your for review. > > When a view is just made invisible, the view below should be damaged. > Normally, this should be done automatically in weston_view_update_transform. > But invisinble views are not in

Re: [PATCH weston] ivi-shell: add screen_remove_layer API

2017-01-27 Thread Pekka Paalanen
On Wed, 18 Jan 2017 16:08:16 + "Ucan, Emre (ADITG/SW1)" wrote: > It is analagous to layer_remove_surface API. > The API removes a layer from the render order of > the screen. > > Signed-off-by: Emre Ucan > --- > ivi-shell/ivi-layout-export.h | 10 ++ > ivi-shell/ivi-layout.c

[PATCH weston v5 3/4] clients: Add pointer gesture support to weston-eventdemo

2017-01-27 Thread Carlos Garnacho
Just print the output, as with the other events. Signed-off-by: Carlos Garnacho Reviewed-by: Jonas Ådahl Reviewed-by: Bryce Harrington --- clients/eventdemo.c | 108 +++- 1 file changed, 107 insertions(+), 1 deletion(-) diff --git a/clients/even

[PATCH weston v5 4/4] clients: Add pointer pinch gesture support to weston-image

2017-01-27 Thread Carlos Garnacho
It will allow zooming in/out the loaded image. Signed-off-by: Carlos Garnacho Reviewed-by: Jonas Ådahl --- clients/image.c | 35 +++ 1 file changed, 35 insertions(+) diff --git a/clients/image.c b/clients/image.c index db9ccd6..5057d0a 100644 --- a/clients/image

[PATCH weston v5 2/4] clients: Request the wl_pointer_gesture_swipe/pinch interfaces

2017-01-27 Thread Carlos Garnacho
This is accompanied by separate handlers for the different stages of swipe/pinch gestures, so those can be set in demos. v5: Update to zwp namespace v4: Indenting fix. v3: added null checks around pointer gesture interface destruction, nullify afterwards. v2: depend on standalone protocol xml.

[PATCH weston v5 1/4] compositor: Implement zwp_pointer_gesture_[pinch|swipe]_v1 interfaces

2017-01-27 Thread Carlos Garnacho
These are obtained from the _wl_pointer_gestures global resource, although each pointer will maintain the resources list and additional information for the pinch/swipe gestures. The lifetime and focus management of gesture resources is thus attached to the pointer. The translation of libinput even

Re: [PATCH weston] systemd: fix Wincompatible-pointer-type

2017-01-27 Thread Pekka Paalanen
On Mon, 23 Jan 2017 12:42:43 + "Ucan, Emre (ADITG/SW1)" wrote: > The parameter is passed in safe_strtoint function. > The function expects its parameters in int32_t > data type. Therefore, c compiler throws a > -Wincompatible-pointer-type warning. > > This patch changes data type of the para

RE: [PATCH weston] ivi-shell: Damage view below after unmapping

2017-01-27 Thread Ucan, Emre (ADITG/SW1)
Hello Pekka, Thank your for review. When a view is just made invisible, the view below should be damaged. Normally, this should be done automatically in weston_view_update_transform. But invisinble views are not in compositor's view list. Therefore, they are not updated. This patch explicitly ch

Re: [PATCH weston 4/4] ivi-shell: add screen_add_layers test

2017-01-27 Thread Pekka Paalanen
On Wed, 18 Jan 2017 15:25:36 + "Ucan, Emre (ADITG/SW1)" wrote: > Test adds 3 layers in a screen's render order list. > First, it adds in the order which layers are created. > Later, test cleans the render order list, > and adds layers in reverse order. > > Signed-off-by: Emre Ucan > --- >

Re: [PATCH weston v2] tests: Remove buffer-count

2017-01-27 Thread Derek Foreman
On 27/01/17 08:56 AM, Daniel Stone wrote: buffer-count was introduced in line with a Mesa change which forced an earlier block on frame events to try to enforce double-buffering where available. The Mesa change has since been reverted (Mesa commit 9ca6711faa), as this had unpleasant interactions

[PATCH weston v2] tests: Remove buffer-count

2017-01-27 Thread Daniel Stone
buffer-count was introduced in line with a Mesa change which forced an earlier block on frame events to try to enforce double-buffering where available. The Mesa change has since been reverted (Mesa commit 9ca6711faa), as this had unpleasant interactions with buffer_age in particular, so this test

Re: [PATCH weston v2] Move weston-egl-ext.h to shared

2017-01-27 Thread Derek Foreman
On 24/11/16 02:14 PM, Daniel Stone wrote: Given that it's used by clients, it's really the very definition of shared. Signed-off-by: Daniel Stone Seems pretty obviously correct. Reviewed-by: Derek Foreman --- Makefile.am| 2 +- {libweston => shared}/weston-egl

Re: [PATCH weston 11/68] compositor-drm: Calculate more cursor state up front

2017-01-27 Thread Derek Foreman
On 09/12/16 01:57 PM, Daniel Stone wrote: Make drm_output_set_cursor more deterministic, by calculating more state and performing more plane manipulation, inside drm_output_prepare_cursor_view. Differential Revision: https://phabricator.freedesktop.org/D1485 Signed-off-by: Daniel Stone Revie

Re: [PATCH weston] ivi-shell: fix typo in layer_destroy API

2017-01-27 Thread Pekka Paalanen
On Tue, 17 Jan 2017 12:35:20 + "Ucan, Emre (ADITG/SW1)" wrote: > Signed-off-by: Emre Ucan > --- > ivi-shell/ivi-layout.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/ivi-shell/ivi-layout.c b/ivi-shell/ivi-layout.c > index cc01de3..6870ea5 100644 > --- a/ivi-s

Re: [PATCH weston] ivi-shell: Damage view below after unmapping

2017-01-27 Thread Pekka Paalanen
On Tue, 17 Jan 2017 12:30:56 + "Ucan, Emre (ADITG/SW1)" wrote: > If ivilayer or ivisurf of ivi_view is made invisible in the > commit_changes call, we have to damage the weston_view below this > ivi_view. Otherwise content of this ivi_view will stay visible. Hi Emre, from a quick check, I t

Re: [PATCH weston 10/68] compositor-drm: Make scanout view preparation more stringent

2017-01-27 Thread Derek Foreman
On 27/01/17 08:30 AM, Daniel Stone wrote: Hi, On 27 January 2017 at 14:25, Derek Foreman wrote: On 09/12/16 01:57 PM, Daniel Stone wrote: +static int +drm_view_transform_supported(struct weston_view *ev) +{ + return !ev->transform.enabled || + (ev->transform.matrix.type <

Re: [PATCH weston 10/68] compositor-drm: Make scanout view preparation more stringent

2017-01-27 Thread Daniel Stone
Hi, On 27 January 2017 at 14:25, Derek Foreman wrote: > On 09/12/16 01:57 PM, Daniel Stone wrote: >> +static int >> +drm_view_transform_supported(struct weston_view *ev) >> +{ >> + return !ev->transform.enabled || >> + (ev->transform.matrix.type < >> WESTON_MATRIX_TRANSFORM_RO

Re: [PATCH weston 10/68] compositor-drm: Make scanout view preparation more stringent

2017-01-27 Thread Derek Foreman
On 09/12/16 01:57 PM, Daniel Stone wrote: Don't import buffers which span multiple outputs, short-cut any attempt to import SHM buffers, and ignore buffers with a global alpha set. I'm not convinced all of these conditions entirely make sense, but this at least makes them equally nonsensical. S

Re: [weston 1/2] linux-dmabuf: implement immediate dmabuf import

2017-01-27 Thread Pekka Paalanen
On Mon, 21 Nov 2016 21:27:03 + Daniel Stone wrote: > Hi Varad, > > On 11 November 2016 at 11:40, Varad Gautam wrote: > > handle create_immed() dmabuf import requests and support > > zwp_linux_dmabuf_v1_interface version 2. > > Same caveat about holding off on merging applies, but these t

Re: [PATCH wayland-protocols v2] linux-dmabuf: add immediate dmabuf import path

2017-01-27 Thread Pekka Paalanen
On Thu, 19 Jan 2017 12:50:07 +0530 Varad Gautam wrote: > From: Varad Gautam > > provide a mechanism that allows clients to import the added dmabufs > and immediately receive the newly created wl_buffer handle. this is > useful to clients that are sure of their import request succeeding, > and w

Re: [PATCH] [weston, v2] weston.ini: Add natural scroll support to weston.ini

2017-01-27 Thread Pekka Paalanen
On Sat, 22 Oct 2016 13:31:28 -0400 Jiayi Zhao wrote: > This adds support for enabling/disabling natural scrolling > via a boolean in weston.ini: > > [libinput] > natural_scroll=true > > CHANGES: > - libinput_device_config_scroll_has_natural_scroll() is not longer compared > to != 0 > > Signe

Re: [PATCH wayland-protocols] linux-dmabuf-unstable: Use standard copyright notice

2017-01-27 Thread Daniel Stone
Hi Yong, On 23 January 2017 at 14:18, Yong Bakos wrote: > From: Yong Bakos Thanks for catching this! To ssh://git.freedesktop.org/git/wayland/wayland-protocols 375385e..ab228a6 push -> master Cheers, Daniel ___ wayland-devel mailing list wayland

Re: [PATCH weston] compositor-rdp: Fix build with freerdp2

2017-01-27 Thread Pekka Paalanen
On Thu, 26 Jan 2017 14:19:49 + Daniel Stone wrote: > Hi, > > On 23 January 2017 at 15:45, Daniel Stone wrote: > > On 23 January 2017 at 14:15, Pekka Paalanen wrote: > >> However, updating to net-misc/freerdp-2.0.0_pre20161219 allows things > >> to build for me again. There is just one wa

Re: [PATCH wayland] wayland-server: hide wl_priv_signal from doxygen

2017-01-27 Thread Pekka Paalanen
On Wed, 25 Jan 2017 06:24:03 -0800 Yong Bakos wrote: > Hi Pekka, > > > On Jan 25, 2017, at 4:32 AM, Pekka Paalanen wrote: > > > > From: Pekka Paalanen > > > > Fix this set of warnings appearing three times during a build: > > > > /home/pq/git/wayland/src/wayland-server.c:1868: warning: clas