Re: [PATCH] dim-layer: fix dimming for unfocused surfaces

2014-01-15 Thread Emilio Pozuelo Monfort
bump On 07/01/14 17:23, poch...@gmail.com wrote: From: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk Unfocusing a surface should dim it when dim-layer is enabled, but this got broken in commit 83ffd9. --- desktop-shell/shell.c | 13 - 1 file changed, 12 insertions

Re: [PATCH] dim-layer: fix dimming for unfocused surfaces

2014-01-30 Thread Emilio Pozuelo Monfort
Hi Ander, On 29/01/14 16:09, Ander Conselvan de Oliveira wrote: On 01/15/2014 10:30 AM, Emilio Pozuelo Monfort wrote: bump On 07/01/14 17:23, poch...@gmail.com wrote: From: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk Unfocusing a surface should dim it when dim-layer is enabled

Re: [PATCH weston] build: Set a default aux dir

2014-02-01 Thread Emilio Pozuelo Monfort
Looks good to me. Reviewed-by: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk On 01/02/14 18:48, Guillem Jover wrote: This moves all the auxiliary build scripts into a build-aux directory, and fixes an issue with configure being unable to find scripts because it tries to change

Re: [PATCH weston] Fullscreen surfaces

2014-02-03 Thread Emilio Pozuelo Monfort
Hi Bill, On 30/01/14 23:33, Bill Spitzak wrote: There really should not be a fullscreen layer which is what is causing this problem. layers are imho a mistake except for the desttop and the mouse cursor. What I think needs to happen: Fullscreen, normal windows, and panels can be

Re: [PATCH weston] Fullscreen surfaces

2014-02-03 Thread Emilio Pozuelo Monfort
On 03/02/14 17:14, Emilio Pozuelo Monfort wrote: Hi Bill, On 30/01/14 23:33, Bill Spitzak wrote: There really should not be a fullscreen layer which is what is causing this problem. layers are imho a mistake except for the desttop and the mouse cursor. What I think needs to happen

Re: [PATCH weston] compositor-rpi: Fix input initialization

2014-02-03 Thread Emilio Pozuelo Monfort
On 03/02/14 20:00, Pekka Paalanen wrote: On Mon, 3 Feb 2014 16:57:27 +0100 poch...@gmail.com wrote: From: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk The input initialization code assumes the outputs have already been initialized; thus create the outputs first. This fixes

[PATCH weston 5/6] tests: use the headless backend to run the test suite

2014-02-06 Thread Emilio Pozuelo Monfort
From: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk Other backends can be used by passing BACKEND=some-backend.so, e.g. $ make check BACKEND=x11-backend.so Signed-off-by: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk --- tests/weston-tests-env | 10 -- 1 file

[PATCH weston 1/6] compositor-headless: create input devices

2014-02-06 Thread Emilio Pozuelo Monfort
From: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk Fixes a segfault when using compositor-headless for the test suite as many tests assume there are input devices and try to use them through the wl_test interface. Signed-off-by: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk

[PATCH weston 6/6] tests: Properly report skipped tests

2014-02-06 Thread Emilio Pozuelo Monfort
From: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk We were calling exit(0) when tests were skipped, which counted them as passed instead of skipped. Fix this by properly exiting with 77 (which is what automake expects for skipped tests) from the tests themselves, then returning 77 again

Re: [PATCH weston 6/6] tests: Properly report skipped tests

2014-02-06 Thread Emilio Pozuelo Monfort
On 06/02/14 12:30, Emilio Pozuelo Monfort wrote: From: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk We were calling exit(0) when tests were skipped, which counted them as passed instead of skipped. Fix this by properly exiting with 77 (which is what automake expects for skipped

[PATCH weston v2 3/6] noop-renderer: Read the shm buffer contents on attach

2014-02-07 Thread Emilio Pozuelo Monfort
From: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk The noop-renderer doesn't read buffer contents, which means bad buffers go undetected. Thus, read the buffer contents just for the purpose of triggering SIGBUS (and having the client killed). Fixes the bad-buffer test when run against

[PATCH weston v2 2/6] noop-renderer: Set the buffer size on attach requests

2014-02-07 Thread Emilio Pozuelo Monfort
From: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk This lets the compositor know the size of the surface as calculated in weston_surface_set_size_from_buffer(), and fixes a couple of tests when using the headless backend. Signed-off-by: Emilio Pozuelo Monfort emilio.pozu

[PATCH weston v2 5/6] tests: use the headless backend to run the test suite

2014-02-07 Thread Emilio Pozuelo Monfort
From: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk Other backends can be used by passing BACKEND=some-backend.so, e.g. $ make check BACKEND=x11-backend.so Signed-off-by: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk --- tests/weston-tests-env | 10 -- 1 file

[PATCH weston v2 4/6] tests: Skip buffer-count if EGL initialization fails

2014-02-07 Thread Emilio Pozuelo Monfort
From: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk That is the case when using the headless backend. In the future we may be able to use the mesa null egl platform but for now let's just skip it. Signed-off-by: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk --- tests/buffer

Re: [PATCH weston 2/6] noop-renderer: Set the buffer size on attach requests

2014-02-07 Thread Emilio Pozuelo Monfort
On 06/02/14 14:37, Pekka Paalanen wrote: On Thu, 6 Feb 2014 12:30:32 +0100 Emilio Pozuelo Monfort poch...@gmail.com wrote: From: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk This lets the compositor know the size of the surface as calculated in weston_surface_set_size_from_buffer

[PATCH weston] exposay: arrange views per-output

2014-02-10 Thread Emilio Pozuelo Monfort
From: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk https://bugs.freedesktop.org/show_bug.cgi?id=73173 --- desktop-shell/exposay.c | 108 desktop-shell/shell.c | 7 desktop-shell/shell.h | 74

[PATCH weston] shell: Change stacking order calculation for popup surfaces

2014-02-11 Thread Emilio Pozuelo Monfort
) is displayed at the top of the stacking order. [ Emilio: handle popups with non-shell-surface parents ] https://bugs.freedesktop.org/show_bug.cgi?id=74831 Signed-off-by: Philip Withnall philip.withn...@collabora.co.uk Co-authored-by: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk

[PATCH weston] shell: activate windows upon a right click

2014-02-11 Thread Emilio Pozuelo Monfort
From: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk This fixes the bug that commit da704d was trying to fix, where a popup would appear on top of its parent but behind other windows. https://bugs.freedesktop.org/show_bug.cgi?id=74831 Signed-off-by: Emilio Pozuelo Monfort emilio.pozu

[PATCH weston] Popup stacking

2014-02-11 Thread Emilio Pozuelo Monfort
From: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk Hi, These two patches fix bug #74831 in two different ways. One of them, originally written by Philip, positions the popup on top of all other surfaces in the layer. That means that you can still end up with the parent surface behind

Re: [PATCH weston 1/2] toytoolkit: avoid unnecessary redraws when focus changes

2014-02-12 Thread Emilio Pozuelo Monfort
On 12/02/14 01:04, Bryce W. Harrington wrote: (For full disclosure - On one test run against master, I noticed the flower changed shape every time it received or lost focus, however I was never able to reproduce that behavior even after doing clean rebuilds.) That's precisely what made me find

Re: [PATCH weston 1/2] toytoolkit: avoid unnecessary redraws when focus changes

2014-02-17 Thread Emilio Pozuelo Monfort
On 12/02/14 15:55, Jasper St. Pierre wrote: What reschedules the frame being drawn when focused is gained / lost, then? I'm not sure what reschedules it, but it does happen: twice when the window is focused, twice when it is unfocused (maybe something to optimize, why are we redrawing twice?).

Re: [PATCH weston] exposay: don't crash if a view goes away

2014-02-19 Thread Emilio Pozuelo Monfort
On 10/02/14 21:17, Daniel Stone wrote: Hi, On 10 February 2014 13:23, Emilio Pozuelo Monfort poch...@gmail.com wrote: When a view was destroyed while we were on exposay, we didn't remove it from the list of views, and so when leaving exposay we were trying to animate (and sometimes activate

Re: Wayland and Weston 1.5.0 is released

2014-05-21 Thread Emilio Pozuelo Monfort
On 20/05/14 22:12, Kristian Høgsberg wrote: Hi, I tagged 1.5.0 of Wayland and Weston and uploaded tar balls last night. Tarballs available from http://wayland.freedesktop.org/releases.html as usual. Magic SHA1 number for the tags and tar balls:

[PATCH weston] exposay: fix crash when navigating with the keyboard

2014-05-23 Thread Emilio Pozuelo Monfort
From: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk Commit a7592019 introduced an optimization that caused some exposay struct members to not be properly initialized, particularly cur_output, leading to crashes in some circumstances (e.g. pressing the down arrow key after going to exposay

Re: [PATCH weston 1/5] animation: fix move scale animation

2014-05-23 Thread Emilio Pozuelo Monfort
On 22/05/14 22:41, Jonny Lamb wrote: Both weston_move_scale_run() and weston_slide_run() were broken in commit 3a869019. Commit a4a6f161 fixed and explained the problem for weston_slide_run() but weston_move_scale_run() remained broken. To fix weston_move_scale_run(),

[PATCH weston] desktop-shell: Don't assume there is a pointer when resizing

2014-06-18 Thread Emilio Pozuelo Monfort
From: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk Fixes a crash on touch devices without a pointer, when touching the window frame of a client. Signed-off-by: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk --- desktop-shell/shell.c | 3 ++- 1 file changed, 2 insertions(+), 1

Re: [PATCH weston] desktop-shell: Don't assume there is a pointer when resizing

2014-06-23 Thread Emilio Pozuelo Monfort
Hi Kristian, On 19/06/14 07:37, Kristian Høgsberg wrote: On Wed, Jun 18, 2014 at 05:48:58PM +0200, Emilio Pozuelo Monfort wrote: From: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk Fixes a crash on touch devices without a pointer, when touching the window frame of a client. Thanks

Support XDG_RUNTIME_DIR being unset

2013-03-11 Thread Emilio Pozuelo Monfort
Hi, The XDG base directory specification[1] says that If $XDG_RUNTIME_DIR is not set applications should fall back to a replacement directory with similar capabilities and print a warning message. Currently we abort if XDG_RUNTIME_DIR is not set. The following patches fall back to ~/.cache, as

[PATCH wayland 1/4] Add wl_get_runtime_dir()

2013-03-11 Thread Emilio Pozuelo Monfort
This function returns the runtime directory, which is $XDG_RUNTIME_DIR if set, and ~/.cache otherwise. This follows the XDG base directory specification. https://bugs.freedesktop.org/show_bug.cgi?id=62092 --- src/wayland-private.h |3 +++ src/wayland-util.c| 27

[PATCH wayland 2/4] wayland-client: use wl_get_runtime_dir()

2013-03-11 Thread Emilio Pozuelo Monfort
https://bugs.freedesktop.org/show_bug.cgi?id=62092 --- src/wayland-client.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/wayland-client.c b/src/wayland-client.c index 74e4657..ba88e5c 100644 --- a/src/wayland-client.c +++ b/src/wayland-client.c @@

[PATCH wayland 3/4] wayland-server: use wl_get_runtime_dir()

2013-03-11 Thread Emilio Pozuelo Monfort
https://bugs.freedesktop.org/show_bug.cgi?id=62092 --- src/wayland-server.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/wayland-server.c b/src/wayland-server.c index 2f3ddc9..816cbf1 100644 --- a/src/wayland-server.c +++ b/src/wayland-server.c @@

[PATCH weston 1/2] os_create_anonymous_file: support XDG_RUNTIME_DIR being unset

2013-03-11 Thread Emilio Pozuelo Monfort
This adds a local copy of wl_get_runtime_dir() from wayland's src/wayland-util.c https://bugs.freedesktop.org/show_bug.cgi?id=62092 --- shared/os-compatibility.c | 39 +-- 1 file changed, 33 insertions(+), 6 deletions(-) diff --git

[PATCH weston 2/2] compositor: don't abort if XDG_RUNTIME_DIR is not set

2013-03-11 Thread Emilio Pozuelo Monfort
The XDG base directory specification says that if XDG_RUNTIME_DIR is not set, one should print a warning and fall back to another directory. https://bugs.freedesktop.org/show_bug.cgi?id=62092 --- src/compositor.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

Re: Support XDG_RUNTIME_DIR being unset

2013-03-11 Thread Emilio Pozuelo Monfort
On 03/11/2013 06:12 PM, Thiago Macieira wrote: On segunda-feira, 11 de março de 2013 17.10.53, Emilio Pozuelo Monfort wrote: The XDG base directory specification[1] says that If $XDG_RUNTIME_DIR is not set applications should fall back to a replacement directory with similar capabilities

On cursor theme and size

2013-03-14 Thread Emilio Pozuelo Monfort
Hi, I was looking at why gtk+ clients use a different cursor theme and size than other (toytoolkit) clients. gtk+ hardcodes the cursor size to 32 as it has no way to get the preferred (default) size from the compositor. I guess one solution would be to have get_default_cursor_theme and

[PATCH 1/3] toytoolkit: implement cursor-size config key

2013-03-14 Thread Emilio Pozuelo Monfort
--- clients/window.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clients/window.c b/clients/window.c index 249ba6f..ec3dca8 100644 --- a/clients/window.c +++ b/clients/window.c @@ -1095,10 +1095,12 @@ create_cursors(struct display *display) { char

[PATCH 2/3] weston.ini.man: document cursor-theme and cursor-key

2013-03-14 Thread Emilio Pozuelo Monfort
--- man/weston.ini.man |6 ++ 1 file changed, 6 insertions(+) diff --git a/man/weston.ini.man b/man/weston.ini.man index 7699e35..8dde82c 100644 --- a/man/weston.ini.man +++ b/man/weston.ini.man @@ -146,6 +146,12 @@ defines the number of workspaces (unsigned integer). The user can

[PATCH 3/3] config.ini: add examples for cursor-theme and cursor-size

2013-03-14 Thread Emilio Pozuelo Monfort
--- weston.ini |2 ++ 1 file changed, 2 insertions(+) diff --git a/weston.ini b/weston.ini index 98092a1..431bfa9 100644 --- a/weston.ini +++ b/weston.ini @@ -9,6 +9,8 @@ locking=true animation=zoom #binding-modifier=ctrl #num-workspaces=6 +#cursor-theme=whiteglass +#cursor-size=24

Re: [PATCH weston] compositor: add information about the fbdev backend to --help output

2013-03-30 Thread Emilio Pozuelo Monfort
Hi, Looks good to me. It would be good to add this to man /weston.man too. Thanks, Emilio On 03/30/2013 03:18 PM, Philipp Brüschweiler wrote: --- src/compositor.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/compositor.c b/src/compositor.c index

Re: [PATCH weston v3 1/3] protocol: Add wl_notification_daemon interface

2013-04-05 Thread Emilio Pozuelo Monfort
Hi, Why are you reinventing org.freedesktop.Notifications? Couldn't this be a client that implements the org.freedesktop.Notifications dbus interface and draws notifications instead? Regards, Emilio On 04/03/2013 07:13 PM, Quentin Glidic wrote: From: Quentin Glidic sardemff7+...@sardemff7.net

Re: [PATCH] Override modules list and don't always load desktop-shell.so

2013-04-14 Thread Emilio Pozuelo Monfort
Looks good to me. Regards, Emilio On 04/14/2013 07:17 PM, Pier Luigi Fiorini wrote: Let --modules override modules list and load desktop-shell.so as a fallback if a modules list is not specified neither by passing --modules nor with weston.ini. Signed-off-by: Pier Luigi Fiorini

Re: [PATCH weston] weston-launch: Run weston in the user login shell

2013-04-22 Thread Emilio Pozuelo Monfort
Hi, What's the use case for this patch? Regards, Emilio On 04/17/2013 03:04 PM, Quentin Glidic wrote: From: Quentin Glidic sardemff7+...@sardemff7.net Signed-off-by: Quentin Glidic sardemff7+...@sardemff7.net --- src/weston-launch.c | 19 --- 1 file changed, 16

Re: [DRM] Patch for Compositor Drm

2013-04-22 Thread Emilio Pozuelo Monfort
Hi, This is obviously correct. Thanks for the fix! Emilio On 04/22/2013 06:12 PM, Christopher Michael wrote: From acb79e4a5921525b35e07e48f7f903e42a08fb7c Mon Sep 17 00:00:00 2001 From: Chris Michael cp.mich...@samsung.com Date: Mon, 22 Apr 2013 15:22:48 +0100 Subject: [PATCH] Fix not

Re: [PATCH 2/3] Add a 'serial' property on weston_output

2013-04-24 Thread Emilio Pozuelo Monfort
On 04/23/2013 05:37 PM, Rob Bradford wrote: On Mon, Apr 22, 2013 at 12:57:03PM +0100, Richard Hughes wrote: --- src/compositor-drm.c | 1 + src/compositor.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index

Re: [PATCH 2/3] Add a 'serial' property on weston_output

2013-04-24 Thread Emilio Pozuelo Monfort
On 04/24/2013 02:02 PM, Richard Hughes wrote: On 24 April 2013 12:42, Emilio Pozuelo Monfort poch...@gmail.com wrote: This is exposed in the weston SDK (compositor.h is a public header). This patch breaks the ABI, but I don't think we have promised to keep it stable for now. I didn't know

Re: [PATCH wayland-web] raspberrypi: mention Raspbian packages

2013-06-03 Thread Emilio Pozuelo Monfort
On 03/06/13 15:50, ppaala...@gmail.com wrote: From: Pekka Paalanen pekka.paala...@collabora.co.uk Signed-off-by: Pekka Paalanen pekka.paala...@collabora.co.uk Cc: Daniel Stone dan...@fooishbar.org Cc: Alex Bradbury a...@asbradbury.org --- Darxus, could you wait till tomorrow until

Re: Compiling weston now needs colord

2013-06-04 Thread Emilio Pozuelo Monfort
On 04/06/13 09:29, Pekka Paalanen wrote: Optionality is good for end users and distros building stuff, but making it automatic makes it easy for developers to just ignore testing some bits. :-) Then it would be the disabled case that wouldn't get testing, and when a user or a distro disabled a

[PATCH 1/2] weston.ini: update path for the flower client

2013-09-23 Thread Emilio Pozuelo Monfort
From: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk --- weston.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weston.ini b/weston.ini index a37afe0..9a7137f 100644 --- a/weston.ini +++ b/weston.ini @@ -33,7 +33,7 @@ path=/usr/bin/google-chrome [launcher] icon

Re: [PATCH v2 2/2] compositor: check if seteuid worked

2013-09-25 Thread Emilio Pozuelo Monfort
Hi, On 25/09/13 14:48, Alex DAMIAN wrote: From: Alexandru DAMIAN alexandru.dam...@intel.com Checking the return value from seteuid in order to not launch clients with the wrong effective uid. Signed-off-by: Alexandru DAMIAN alexandru.dam...@intel.com --- src/compositor.c | 7 +--

[PATCH] input: Don't send leave events to destroyed views

2013-11-12 Thread Emilio Pozuelo Monfort
If a view which has focus is destroyed, we would send a leave event while changing focus, causing a segfault. Prevent this by listening to the view's destroy signal and removing it from the pointer focus. Signed-off-by: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk --- src/compositor.h

Re: [PATCH] input: Don't send leave events to destroyed views

2013-11-13 Thread Emilio Pozuelo Monfort
On 12/11/13 19:28, Emilio Pozuelo Monfort wrote: If a view which has focus is destroyed, we would send a leave event while changing focus, causing a segfault. Prevent this by listening to the view's destroy signal and removing it from the pointer focus. Signed-off-by: Emilio Pozuelo Monfort

[PATCH 2/9] Add modifier-only binding

2013-11-15 Thread Emilio Pozuelo Monfort
From: Daniel Stone dan...@fooishbar.org Add the ability to bind to modifiers; the binding is armed when a key which sets the requested modifier is pressed, and triggered if the key is released with no other keys having been pressed in the meantime, as well as mouse buttons or scroll axes. This

[PATCH 1/9] animation, shell: add kbd focus change animation

2013-11-15 Thread Emilio Pozuelo Monfort
From: Louis-Francis Ratté-Boulianne l...@collabora.com When enabled, this will make all but the keyboard-focused window dim. Also the background gets dimmed, if there are any windows open. The panel is not dimmed. When the keyboard focus changes, the change in dimming is animated. The dimming

[PATCH 0/9] exposay alt-tab

2013-11-15 Thread Emilio Pozuelo Monfort
binding Add move/scale animation Add Exposay Emilio Pozuelo Monfort (5): input: Don't send leave events to destroyed views shell: Implement alt-tab switcher exposay: add cancel impl to the kbd grab iface exposay: Activate a surface when hovering it shell: Set output

[PATCH 8/9] exposay: Activate a surface when hovering it

2013-11-15 Thread Emilio Pozuelo Monfort
This causes the surface to get the keyboard focus, which in turn causes focus-animation to nicely work with exposay, making the not focused surfaces to be dimmed. Signed-off-by: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk --- src/shell.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH 4/9] Add Exposay

2013-11-15 Thread Emilio Pozuelo Monfort
From: Daniel Stone dan...@fooishbar.org Exposay provides window overview functions which, when a key which produces the binding modifier is pressed on its own, scales all currently-open windows down to be shown overlaid on the desktop, providing keyboard and mouse navigation to be able to switch

Re: [PATCH 1/9] animation, shell: add kbd focus change animation

2013-11-19 Thread Emilio Pozuelo Monfort
On 19/11/13 04:27, Bryce W. Harrington wrote: On Fri, Nov 15, 2013 at 05:53:30PM +0100, Emilio Pozuelo Monfort wrote: From: Louis-Francis Ratté-Boulianne l...@collabora.com When enabled, this will make all but the keyboard-focused window dim. Also the background gets dimmed, if there are any

[PATCH 0/9] exposay alt-tab

2013-11-19 Thread Emilio Pozuelo Monfort
Rebased on master and fixed a couple of conflicts with Giulio's recent input changes. Fixed the typo spotted by Bryce. Daniel Stone (3): Add modifier-only binding Add move/scale animation Add Exposay Emilio Pozuelo Monfort (5): input: Don't send leave events to destroyed views shell

[PATCH 5/9] input: Don't send leave events to destroyed views

2013-11-19 Thread Emilio Pozuelo Monfort
If a view which has focus is destroyed, we would send a leave event while changing focus, causing a segfault. Prevent this by listening to the view's destroy signal and removing it from the pointer focus. Signed-off-by: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk --- src/compositor.h

[PATCH 7/9] exposay: add cancel impl to the kbd grab iface

2013-11-19 Thread Emilio Pozuelo Monfort
Otherwise we'll crash when cancel is called. Signed-off-by: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk --- src/shell.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/src/shell.c b/src/shell.c index 2a8c04c..dae31a0 100644 --- a/src/shell.c +++ b/src/shell.c @@ -5351,9

[PATCH 2/9] Add modifier-only binding

2013-11-19 Thread Emilio Pozuelo Monfort
From: Daniel Stone dan...@fooishbar.org Add the ability to bind to modifiers; the binding is armed when a key which sets the requested modifier is pressed, and triggered if the key is released with no other keys having been pressed in the meantime, as well as mouse buttons or scroll axes. This

[PATCH 9/9] shell: Set output on the focus_surfaces' view

2013-11-19 Thread Emilio Pozuelo Monfort
Otherwise we crash when animating the view. Signed-off-by: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk --- src/shell.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shell.c b/src/shell.c index 09ff86c..bf5c704 100644 --- a/src/shell.c +++ b/src/shell.c @@ -615,6 +615,7

[PATCH 6/9] shell: Implement alt-tab switcher

2013-11-19 Thread Emilio Pozuelo Monfort
Signed-off-by: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk --- src/shell.c | 248 1 file changed, 248 insertions(+) diff --git a/src/shell.c b/src/shell.c index b2bc74a..2a8c04c 100644 --- a/src/shell.c +++ b/src/shell.c

[PATCH 1/9] animation, shell: add kbd focus change animation

2013-11-19 Thread Emilio Pozuelo Monfort
From: Louis-Francis Ratté-Boulianne l...@collabora.com When enabled, this will make all but the keyboard-focused window dim. Also the background gets dimmed, if there are any windows open. The panel is not dimmed. When the keyboard focus changes, the change in dimming is animated. The dimming

[PATCH 4/9] Add Exposay

2013-11-19 Thread Emilio Pozuelo Monfort
From: Daniel Stone dan...@fooishbar.org Exposay provides window overview functions which, when a key which produces the binding modifier is pressed on its own, scales all currently-open windows down to be shown overlaid on the desktop, providing keyboard and mouse navigation to be able to switch

[PATCH] exposay: move the pointer in our motion handler

2013-11-19 Thread Emilio Pozuelo Monfort
This is necessary since commit 1959ab. --- src/shell.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/shell.c b/src/shell.c index bf5c704..82c3cd8 100644 --- a/src/shell.c +++ b/src/shell.c @@ -5232,11 +5232,14 @@ exposay_layout(struct desktop_shell *shell) }

Re: [PATCH v2 wayland] pkg-config: scanner isn't arch-independent

2013-11-19 Thread Emilio Pozuelo Monfort
Ping? wayland-scanner hasn't been dropped and the .pc location is still bogus. On 20/08/13 00:58, Kristian Høgsberg wrote: On Fri, Aug 16, 2013 at 03:55:52PM +0100, Daniel Stone wrote: Hi, On 16 August 2013 15:50, David Herrmann dh.herrm...@gmail.com wrote: On Fri, Aug 16, 2013 at 2:26 PM,

Re: Arrgggh Wayland is not compiling again (xcb-composite)

2013-12-08 Thread Emilio Pozuelo Monfort
On 08/12/13 16:48, Bill Spitzak wrote: Make of weston is not working: ~/swdevl/wayland/weston$ make /dev/nullconfigure: error: Package requirements (xcb xcb-xfixes xcb-composite xcursor cairo-xcb) were not met: No package 'xcb-composite' found I have the .pc file: ls

wl_display_connect() falling back to wayland-0

2013-12-09 Thread Emilio Pozuelo Monfort
Hi, I was looking at making gtk+ try the wayland backend before the x11 one [1]. This would solve the problem where every gtk+ app uses the x11 backend through XWayland when the latter is available. As you can read on comment #3 and in the patch from comment #1, wl_display_connect() currently

Re: [PATCH] cursor: free the array from which images are linked

2015-03-18 Thread Emilio Pozuelo Monfort
@@ wl_cursor_destroy(struct wl_cursor *cursor) for (i = 0; i cursor-image_count; i++) wl_cursor_image_destroy(cursor-images[i]); + free(cursor-images); free(cursor-name); free(cursor); } Looks good. Reviewed-by: Emilio Pozuelo Monfort emilio.pozu

Re: [PATCH weston] compositor: fix return code from main()

2015-03-20 Thread Emilio Pozuelo Monfort
)) { - ret = EXIT_FAILURE; goto out; } Reviewed-by: Emilio Pozuelo Monfort emilio.pozu...@collabora.co.uk Cheers, Emilio ___ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman

Re: [PATCH libinput 1/2] udev: fix ALPS firmware detection

2016-02-09 Thread Emilio Pozuelo Monfort
On 09/02/16 03:12, Peter Hutterer wrote: > The firmware version is in id.version, not id.model which is always > PSMOUSE_ALPS for ALPS devices. > > The various fw versions are listed in /drivers/input/mouse/alps.h and > are all hex numbers. Version 8 is actually 0x800, change the match >

Re: [PATCH weston 3/3] compositor: don't map surfaces without a buffer

2017-02-03 Thread Emilio Pozuelo Monfort
On 03/02/17 16:27, Derek Foreman wrote: > On 03/02/17 09:10 AM, Emilio Pozuelo Monfort wrote: >> We were calling weston_surface::committed on surfaces with >> no buffer attached. Stop doing that, since surface::committed >> will map the surfaces and put them in a vi

[PATCH weston 1/3] tests: add a create_test_surface function

2017-02-03 Thread Emilio Pozuelo Monfort
This doesn't attach a buffer to the surface. This is needed for the next commit, where we have a test case with a surface that doesn't have a buffer attached. Signed-off-by: Emilio Pozuelo Monfort <emilio.pozu...@collabora.co.uk> --- tests/weston-test-client-helper.

[PATCH weston 2/3] shot: add test for sub-surface with unmapped parent

2017-02-03 Thread Emilio Pozuelo Monfort
This reproduces https://bugs.freedesktop.org/show_bug.cgi?id=94735. The test currently fails, so mark it as expected to fail. Signed-off-by: Emilio Pozuelo Monfort <emilio.pozu...@collabora.co.uk> --- tests/reference/subsurface_mapped-00.png | Bin 0 -> 799 bytes tests/

[PATCH weston 3/3] compositor: don't map surfaces without a buffer

2017-02-03 Thread Emilio Pozuelo Monfort
, but it is a problem if the surface has subsurfaces. This fixes the subsurface_mapped test, so mark it as expected to succeed. https://bugs.freedesktop.org/show_bug.cgi?id=94735 Signed-off-by: Emilio Pozuelo Monfort <emilio.pozu...@collabora.co.uk> --- libweston/compositor.c | 10 +-

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

2017-01-27 Thread Emilio Pozuelo Monfort
wrote the commit message. [Emilio: update to latest weston_layer and shell_init API] Signed-off-by: Quentin Glidic <sardemff7+...@sardemff7.net> Signed-off-by: Emilio Pozuelo Monfort <emilio.pozu...@collabora.co.uk> Signed-off-by: Pekka Paalanen <pekka.paala...@collabora.co

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

2017-01-27 Thread Emilio Pozuelo Monfort
d-by: Emilio Pozuelo Monfort <emilio.pozu...@collabora.co.uk> --- tests/weston-test-runner.c | 21 +++-- tests/weston-test-runner.h | 12 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/tests/weston-test-runner.c b/tests/weston-test-runner.c index

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

2017-01-27 Thread Emilio Pozuelo Monfort
From: Pekka Paalanen <pekka.paala...@collabora.co.uk> Stop using static variables and clean up when we're done. [Emilio: update to latest weston_layer API] Signed-off-by: Pekka Paalanen <pekka.paala...@collabora.co.uk> Signed-off-by: Emilio Pozuelo Monfort <emilio.pozu...@

[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.

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

2017-01-27 Thread Emilio Pozuelo Monfort
From: Pekka Paalanen <pekka.paala...@collabora.co.uk> 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 <pekka.paala...@collabora.co.uk> Signed-off-by: Emilio Poz

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

2017-01-27 Thread Emilio Pozuelo Monfort
, and allows the client to atomically schedule several changes. This fixes the subsurface_z_order test, which is now marked as expected to succeed. Signed-off-by: Emilio Pozuelo Monfort <emilio.pozu...@collabora.co.uk> Reviewed-by: Pekka Paalanen <pekka.paala...@collabora.co.uk> --- libweston/

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

2017-01-27 Thread Emilio Pozuelo Monfort
From: Pekka Paalanen <pekka.paala...@collabora.co.uk> 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 <pekka.paala...@collabora.co.uk> Reviewed-by: Em

Re: [PATCH weston 1/3] tests: add a create_test_surface function

2017-02-14 Thread Emilio Pozuelo Monfort
BTW note this series depends on this other one: https://patchwork.freedesktop.org/series/18695/ https://lists.freedesktop.org/archives/wayland-devel/2017-January/032890.html Cheers, Emilio On 03/02/17 16:10, Emilio Pozuelo Monfort wrote: > This doesn't attach a buffer to the surf

Re: [PATCH weston] clients: fix errno handling

2017-01-18 Thread Emilio Pozuelo Monfort
On 18/01/17 01:53, Peter Hutterer wrote: > clients/editor.c: In function ‘read_file’: > clients/editor.c:1578:16: warning: logical ‘or’ applied to non-boolean > constant [-Wlogical-op] > errno = errsv || EINVAL; > > This works in the shell, but not in C. Introduced in 411ffabbb56b > >

Re: [PATCH weston] clients: fix errno handling

2017-01-18 Thread Emilio Pozuelo Monfort
On 18/01/17 23:21, Peter Hutterer wrote: > clients/editor.c: In function ‘read_file’: > clients/editor.c:1578:16: warning: logical ‘or’ applied to non-boolean > constant [-Wlogical-op] > errno = errsv || EINVAL; > > This works in the shell, but not in C. Introduced in 411ffabbb56b > >

Re: [PATCH weston] clients: fix errno handling

2017-01-19 Thread Emilio Pozuelo Monfort
On 18/01/17 23:58, Emilio Pozuelo Monfort wrote: > On 18/01/17 23:21, Peter Hutterer wrote: >> clients/editor.c: In function ‘read_file’: >> clients/editor.c:1578:16: warning: logical ‘or’ applied to non-boolean >> constant [-Wlogical-op] >> errno = errsv || EINVAL; &g

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

2017-01-17 Thread Emilio Pozuelo Monfort
Based on a patch from John Moser <john.r.mo...@gmail.com> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850658 Signed-off-by: Emilio Pozuelo Monfort <po...@debian.org> --- libweston/compositor-rdp.c | 8 1 file changed, 8 insertions(+) diff --git a/libweston/compos

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

2017-01-18 Thread Emilio Pozuelo Monfort
On 18/01/17 14:09, Daniel Stone wrote: > Hi Emilio, > > On 17 January 2017 at 19:58, Emilio Pozuelo Monfort <po...@debian.org> wrote: >> index 223382ce..94b4bfa9 100644 >> --- a/libweston/compositor-rdp.c >> +++ b/libweston/compositor-rdp.c >> @@

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

2017-01-18 Thread Emilio Pozuelo Monfort
Based on a patch from John Moser <john.r.mo...@gmail.com> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850658 Signed-off-by: Emilio Pozuelo Monfort <po...@debian.org> --- libweston/compositor-rdp.c | 8 1 file changed, 8 insertions(+) diff --git a/libweston/compos

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

2017-01-20 Thread Emilio Pozuelo Monfort
On 19/01/17 11:26, Daniel Stone wrote: > Hi Emilio, > > On 18 January 2017 at 17:43, Emilio Pozuelo Monfort <po...@debian.org> wrote: >> Based on a patch from John Moser <john.r.mo...@gmail.com> >> >> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850

Re: [PATCH wayland 3/3] tests: add scanner tests

2016-11-10 Thread Emilio Pozuelo Monfort
> + $(top_srcdir)/tests/data/small-code-core.c \ > + $(top_srcdir)/tests/data/small-client-core.h\ > + $(top_srcdir)/tests/data/small-server-core.h > + > +tests/scanner-test.sh: \ > + $(top_builddir)/wayland-scanner \ > + $(sca

Re: [PATCH wayland 3/3] tests: add scanner tests

2016-11-15 Thread Emilio Pozuelo Monfort
On 11/11/16 15:56, Pekka Paalanen wrote: > On Thu, 10 Nov 2016 12:18:55 +0200 > Pekka Paalanen <ppaala...@gmail.com> wrote: > >> On Thu, 10 Nov 2016 11:11:51 +0100 >> Emilio Pozuelo Monfort <poch...@gmail.com> wrote: >> >>> On 10/11/16 10:57, P

Re: [PATCH weston] configure: bump libweston to 3.0.0

2017-03-14 Thread Emilio Pozuelo Monfort
e side, bump the major now. I'm sure > there will be more changes that make the bump obviously necessary. > > Cc: Bryce Harrington <br...@osg.samsung.com> > Cc: Daniel Stone <dani...@collabora.com> > Signed-off-by: Pekka Paalanen <pekka.paala...@collabora.co.uk>

Re: [PATCH weston 2/2] launcher: Add sysmacros.h include for major()

2017-03-13 Thread Emilio Pozuelo Monfort
i...@collabora.com> Series is: Reviewed-by: Emilio Pozuelo Monfort <emilio.pozu...@collabora.co.uk> > --- > libweston/launcher-direct.c| 1 + > libweston/launcher-logind.c| 1 + > libweston/launcher-weston-launch.c | 1 + > 3 files changed, 3 insertions(+) >

Re: [ANNOUNCE] wayland-protocols 1.12

2017-12-03 Thread Emilio Pozuelo Monfort
Hi Jonas, On 02/12/17 03:41, Jonas Ådahl wrote: > wayland-protocols 1.12 is now available. > > This version includes the new stable version of the XDG Shell protocol. In > short, the difference between the XDG Shell stable and the last unstable > version include (among other things): > > * The

Re: [PATCH weston 2/2] Add .gitlab-ci.yml

2018-06-06 Thread Emilio Pozuelo Monfort
On 06/06/18 10:12, Daniel Stone wrote: > Hi, > > On 6 June 2018 at 09:03, Pekka Paalanen wrote: >> On Tue, 5 Jun 2018 23:06:59 +0100 >> Daniel Stone wrote: >>> + - export XDG_RUNTIME_DIR="$(mktemp -p $(pwd) -d xdg-runtime-XX)" >>> + - export

[PATCH weston] simple-dmabuf-drm: fix build with --disable-egl

2018-07-02 Thread Emilio Pozuelo Monfort
Signed-off-by: Emilio Pozuelo Monfort --- I tried a build with --disable-egl as I didn't have the headers installed, and it broke here. The EGL usage here seemed optional so I did that, but I didn't run-test the result. If it would make more sense to disable the client if EGL support is disabled

Re: [PATCH weston] simple-dmabuf-drm: fix build with --disable-egl

2018-07-03 Thread Emilio Pozuelo Monfort
On 03/07/18 11:00, Pekka Paalanen wrote: > On Mon, 2 Jul 2018 17:22:30 +0200 > Emilio Pozuelo Monfort wrote: > >> Signed-off-by: Emilio Pozuelo Monfort >> --- >> I tried a build with --disable-egl as I didn't have the headers >> installed, and it broke here. T

[PATCH weston 1/2 v5] simple-dmabuf-drm: nv12: properly fill Y plane

2018-07-19 Thread Emilio Pozuelo Monfort
We want 0..255 values, not 0..254. Signed-off-by: Emilio Pozuelo Monfort --- No changes in this version. clients/simple-dmabuf-drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/simple-dmabuf-drm.c b/clients/simple-dmabuf-drm.c index bd0f9224..5bc5323e 100644

  1   2   >