[PATCH weston 0/2] xwm: Dump properties.

2018-05-04 Thread Fabien Lahoudere
This series adds code to help debug by dumping properties of type CARDINAL and WINDOW. Pekka Paalanen (2): xwm: dump properties of type CARDINAL xwm: dump properties of type WINDOW xwayland/window-manager.c | 70 ++- 1 file changed, 69 insertions(+

[PATCH weston 1/2] xwm: dump properties of type CARDINAL

2018-05-04 Thread Fabien Lahoudere
From: Pekka Paalanen Add code to dump CARDINAL arrays from properties. Useful for debugging. Signed-off-by: Pekka Paalanen Signed-off-by: Fabien Lahoudere --- xwayland/window-manager.c | 66 ++- 1 file changed, 65 insertions(+), 1 deletion(-) diff

[PATCH weston 2/2] xwm: dump properties of type WINDOW

2018-05-04 Thread Fabien Lahoudere
From: Pekka Paalanen Very useful for TRANSIENT_FOR property debugging. Signed-off-by: Pekka Paalanen Signed-off-by: Fabien Lahoudere --- xwayland/window-manager.c | 4 1 file changed, 4 insertions(+) diff --git a/xwayland/window-manager.c b/xwayland/window-manager.c index 061ce17

[PATCH weston 0/1] Improve override-redirect debug messages

2018-05-04 Thread Fabien Lahoudere
This patch is an addition to https://patchwork.freedesktop.org/patch/211161/. Pekka Paalanen (1): xwm: improve override-redirect debug messages xwayland/window-manager.c | 29 - 1 file changed, 20 insertions(+), 9 deletions(-) -- 1.8.3.1 _

[PATCH weston 1/1] xwm: improve override-redirect debug messages

2018-05-04 Thread Fabien Lahoudere
From: Pekka Paalanen Explicitly say if O-R is yes or no, to not have to remember which messages possibly printed it. Signed-off-by: Pekka Paalanen Signed-off-by: Fabien Lahoudere Conflicts: xwayland/window-manager.c --- xwayland/window-manager.c | 29 - 1

[PATCH weston 1/1] desktop-shell: detect stale shell surface outputs

2018-05-02 Thread Fabien Lahoudere
: Fabien Lahoudere --- desktop-shell/shell.c | 29 +++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index b846e30..b539431 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -128,6 +128,7

[PATCH weston 1/4] desktop-shell: handle NULL output in get_output_work_area()

2018-05-02 Thread Fabien Lahoudere
nyway. In set_maximized_position(), this makes it behave as if the output was at 0,0 which is the default position of the first output. Signed-off-by: Pekka Paalanen Signed-off-by: Fabien Lahoudere --- desktop-shell/shell.c | 9 + 1 file changed, 9 insertions(+) diff --git a/desktop-shell/shell.c

[PATCH weston 0/4] Handle several NULL output pointer

2018-05-02 Thread Fabien Lahoudere
This is a series of fixes, for the case when Weston is running without any connected outputs (weston_outputs). Pekka Paalanen (4): desktop-shell: handle NULL output in get_output_work_area() desktop-shell: handle NULL output in center_on_output() desktop-shell: do not lower_fullscreen_layer(

[PATCH weston 3/4] desktop-shell: do not lower_fullscreen_layer(s, NULL)

2018-05-02 Thread Fabien Lahoudere
Signed-off-by: Fabien Lahoudere --- desktop-shell/shell.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index e6ce20b..1edd37b 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -3735,7 +3735,8 @@ activate(struct

[PATCH weston 4/4] desktop-shell: survive NULL output in shell_configure_fullscreen()

2018-05-02 Thread Fabien Lahoudere
bail out with minimal work if there is no fullscreen_output. It is unclear if anything will cause a reconfiguration when an output is plugged in. Signed-off-by: Pekka Paalanen Signed-off-by: Fabien Lahoudere --- desktop-shell/shell.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/

[PATCH weston 2/4] desktop-shell: handle NULL output in center_on_output()

2018-05-02 Thread Fabien Lahoudere
: Fabien Lahoudere --- desktop-shell/shell.c | 5 + 1 file changed, 5 insertions(+) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index c1a551b..e6ce20b 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -4150,6 +4150,11 @@ center_on_output(struct weston_view *view

[PATCH 1/1] libweston: add weston_view_set_output()

2018-04-26 Thread Fabien Lahoudere
, e.g. configure_static_view() accesses memory that has already been freed. The scenario can be provoked by repeatedly plugging and unplugging a display. The faulty memory accesses are reported by valgrind. Signed-off-by: Semi Malinen Signed-off-by: Fabien Lahoudere --- desktop-shell/shell.c | 11

[PATCH weston 1/4] pixman,drm: do not composite previous damage

2018-04-23 Thread Fabien Lahoudere
copied to hw. Signed-off-by: Pekka Paalanen Signed-off-by: Fabien Lahoudere --- libweston/compositor-drm.c | 16 libweston/pixman-renderer.c | 35 ++- libweston/pixman-renderer.h | 7 ++- 3 files changed, 40 insertions(+), 18 deletions

[PATCH weston 3/4] compositor-drm: expose global shadow flag for pixman

2018-04-23 Thread Fabien Lahoudere
. Signed-off-by: Pekka Paalanen Signed-off-by: Fabien Lahoudere --- libweston/compositor-drm.c | 15 --- libweston/compositor-drm.h | 3 +++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c index ce33905..a1df45b

[PATCH weston 2/4] pixman: make shadow buffer optional

2018-04-23 Thread Fabien Lahoudere
depends on the platform and the workload. Therefore let the backends control whether pixman-renderer uses a shadow buffer for an output or not. Signed-off-by: Pekka Paalanen Signed-off-by: Fabien Lahoudere --- libweston/compositor-drm.c | 3 +- libweston/compositor-fbdev.c| 3

[PATCH weston 4/4] main: add setting for DRM/pixman shadow framebuffer

2018-04-23 Thread Fabien Lahoudere
From: Pekka Paalanen Allows to control the Pixman-renderer shadow framebuffer usage from weston.ini. It defaults to enabled, and whether it is a good idea to disable or not depends on the platform and the workload. Signed-off-by: Pekka Paalanen Signed-off-by: Fabien Lahoudere --- compositor

[PATCH weston 0/4] Optimize pixman renderer

2018-04-23 Thread Fabien Lahoudere
Optimizes pixman renderer by: - optimizing compositing damage in DRM/pixman Reduce Weston's CPU usage by avoiding unnecessary compositing when updating the shadow buffer in pixman-renderer, under the DRM backend. The test was a proprietary graphical X11 application in demo mode. The effect

[PATCH weston 0/4] Optimize pixman renderer

2018-04-23 Thread Fabien Lahoudere
Optimizes pixman renderer by: - optimizing compositing damage in DRM/pixman Reduce Weston's CPU usage by avoiding unnecessary compositing when updating the shadow buffer in pixman-renderer, under the DRM backend. The test was a proprietary graphical X11 application in demo mode. The effect

[PATCH weston 2/4] pixman: make shadow buffer optional

2018-04-23 Thread Fabien Lahoudere
depends on the platform and the workload. Therefore let the backends control whether pixman-renderer uses a shadow buffer for an output or not. Signed-off-by: Pekka Paalanen Signed-off-by: Fabien Lahoudere --- libweston/compositor-drm.c | 3 +- libweston/compositor-fbdev.c| 3

[PATCH weston 4/4] main: add setting for DRM/pixman shadow framebuffer

2018-04-23 Thread Fabien Lahoudere
From: Pekka Paalanen Allows to control the Pixman-renderer shadow framebuffer usage from weston.ini. It defaults to enabled, and whether it is a good idea to disable or not depends on the platform and the workload. Signed-off-by: Pekka Paalanen Signed-off-by: Fabien Lahoudere --- compositor

[PATCH weston 1/4] pixman,drm: do not composite previous damage

2018-04-23 Thread Fabien Lahoudere
copied to hw. Signed-off-by: Pekka Paalanen Signed-off-by: Fabien Lahoudere --- libweston/compositor-drm.c | 16 libweston/pixman-renderer.c | 35 ++- libweston/pixman-renderer.h | 7 ++- 3 files changed, 40 insertions(+), 18 deletions

[PATCH weston 3/4] compositor-drm: expose global shadow flag for pixman

2018-04-23 Thread Fabien Lahoudere
. Signed-off-by: Pekka Paalanen Signed-off-by: Fabien Lahoudere --- libweston/compositor-drm.c | 15 --- libweston/compositor-drm.h | 3 +++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c index ce33905..a1df45b

Re: [PATCH weston] gl-renderer: Set pitch correctly for subsampled textures

2017-10-09 Thread Fabien Lahoudere
> This does not match the requirements for GStreamer's waylandsink, in > particular, as well as other clients. Fix the SHM upload path to > correctly set the pitch for each plane, according to subsampling. > > Tested with: >   $ gst-launch-1.0 videotestsrc ! waylandsink >

[weston 1/1] calibrator: Make mouse button optional

2017-09-07 Thread Fabien Lahoudere
to avoid to use the mouse in weston-calibrator, we disable mouse operation by default and add a parameter "--enable-mouse" to enable it. Signed-off-by: Fabien Lahoudere --- clients/calibrator.c | 38 ++ 1 file changed, 34 insertions(+), 4 deletion