[PATCH weston] compositor-rpi: Fix input initialization

2014-02-03 Thread pochu27
From: Emilio Pozuelo Monfort The input initialization code assumes the outputs have already been initialized; thus create the outputs first. This fixes a segfault upon startup. It is also what the drm and fbdev backends do. --- src/compositor-rpi.c | 19 --- 1 file changed, 8 ins

[PATCH weston] Fullscreen surfaces

2014-01-30 Thread pochu27
From: Emilio Pozuelo Monfort Hi, The following patch fixes a bunch of issues related to fullscreen surfaces. From my testing, this makes fullscreen clients behave much better. We still have the following problem, but it is not a regression. I am not sure how to fix it without regressing other s

[PATCH weston] desktop-shell: Properly handle lowered fullscreen surfaces

2014-01-30 Thread pochu27
From: Emilio Pozuelo Monfort lower_fullscreen_surface() was removing fullscreen surfaces from the fullscreen layer and inserting them in the normal workspace layer. However, those fullscreen surfaces were never put back in the fullscreen layer, causing bugs such as unrelated surfaces being drawn

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

2014-01-30 Thread pochu27
From: Emilio Pozuelo Monfort Unfocusing a surface should dim it when dim-layer is enabled, but this got broken in commit 83ffd9. --- desktop-shell/shell.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 30bd273..3087

[PATCH weston 2/2] desktop-shell: unfullscreen before (un)maximizing

2014-01-29 Thread pochu27
From: Emilio Pozuelo Monfort Before maximizing or unmaximizing a window, first tell the client to unfullscreen the window. This fixes a crash in weston because we ended up thinking the surface was fullscreened when it wasn't. --- desktop-shell/shell.c | 4 1 file changed, 4 insertions(+) d

[PATCH weston 1/2] desktop-shell: maximize the surface with the kbd focus

2014-01-29 Thread pochu27
From: Emilio Pozuelo Monfort We don't have focus-follows-mouse, so it makes more sense to maximize or fullscreen the surface that has the keyboard focus, not the one behind the pointer. --- desktop-shell/shell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop-shel

[PATCH weston] desktop-shell: initialize children link

2014-01-28 Thread pochu27
From: Emilio Pozuelo Monfort Since commit 9046d2, when destroying a surface, we remove all the links from its children. But when the child surfaces are destroyed, those links will be removed again, but since they were not properly initialized, weston will crash. Call shell_surface_set_parent ins

[PATCH] alt-tab: highlight the currently selected view

2014-01-09 Thread pochu27
From: Emilio Pozuelo Monfort --- desktop-shell/shell.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 13a42e1..3cb82a1 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -3987,12 +3987,23 @@ struct alt_tab_previ

[PATCH 3/3] alt-tab: switch binding to mod+tab

2014-01-08 Thread pochu27
From: Emilio Pozuelo Monfort So it uses the same modifier than the rest of the bindings, for consistency's sake. --- desktop-shell/shell.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index cc7d8dc..13a42e1 100644 --- a/de

[PATCH 0/3] alt-tab redux

2014-01-08 Thread pochu27
From: Emilio Pozuelo Monfort Hi Kristian, I know you said in your alt-tab removal commit that we would reintroduce it again in 1.5. I'm just sending this here now to have it on list, but waiting for 1.4 to be released is fine with me. In this series I'm not removing the old switcher. I don't th

[PATCH 2/3] switcher: change keybinding to mod+esc

2014-01-08 Thread pochu27
From: Emilio Pozuelo Monfort To avoid conflicts with the new alt+tab. --- desktop-shell/shell.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 3d0836d..cc7d8dc 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shel

[PATCH 1/3] Bring alt-tab back to life

2014-01-08 Thread pochu27
From: Emilio Pozuelo Monfort --- desktop-shell/shell.c | 251 ++ 1 file changed, 251 insertions(+) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 96e31a1..3d0836d 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@

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

2014-01-07 Thread pochu27
From: Emilio Pozuelo Monfort 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(+), 1 deletion(-) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index f85a269

[PATCH 2/2] exposay: set an alpha on fullscreen surfaces

2014-01-07 Thread pochu27
From: Emilio Pozuelo Monfort This makes the desktop background actually draw when there is a fullscreen surface and we go to exposay. --- I'm not sure if this one is right, but it does the trick... If this is not too hacky I could split set_alpha_if_fullscreen() into is_fullscreen() and set_alph

[PATCH 1/2] exposay: fix infinite loop with fullscreen surfaces

2014-01-07 Thread pochu27
From: Emilio Pozuelo Monfort We were calling exposay_highlight_surface() inside a wl_list_for_each loop for a layer, but exposay_highlight_surface() calls activate() which calls shell_surface_update_layer(), which removes the surface from its layer and reinserts it, causing an infinite loop. Cal

[PATCH] Make the default desktop shell client configurable

2013-12-02 Thread pochu27
From: Emilio Pozuelo Monfort The default can be set by passing WESTON_SHELL_CLIENT as an argument to configure, similarly to WESTON_NATIVE_BACKEND. --- configure.ac | 9 + man/Makefile.am| 1 + man/weston.ini.man | 3 ++- src/shell.c| 2 +- 4 files changed, 13 insertion

[PATCH 2/2] exposay: properly go away when the modifier is pressed

2013-11-27 Thread pochu27
From: Emilio Pozuelo Monfort We no longer receive an exposay_binding() call while exposay is in-flight as we have grabbed the keyboard, so we need to listen on the modifiers callback for the modifier press and release. --- Sorry, I tweaked the braces before sending and missed one. Fixed and veri

Prevent multiple keybindings from running simultaneously

2013-11-27 Thread pochu27
From: Emilio Pozuelo Monfort The first patch here prevents modifier keybindings from running while the keyboard is grabbed. This can be seen by going to alt-tab and then pressing mod before releasing alt. That will call the exposay binding handler which will then start exposay and take the keyboa

[PATCH 2/2] exposay: properly go away when the modifier is pressed

2013-11-27 Thread pochu27
From: Emilio Pozuelo Monfort We no longer receive an exposay_binding() call while exposay is in-flight as we have grabbed the keyboard, so we need to listen on the modifiers callback for the modifier press and release. --- src/shell.c | 31 +++ 1 file changed, 27 inse

[PATCH 1/2] input: don't run modifier bindings when the kbd is grabbed

2013-11-27 Thread pochu27
From: Emilio Pozuelo Monfort We don't want bindings to be run while the keyboard is grabbed. Otherwise the binding handler may grab the keyboard too, making the old grab go away without even being cancelled. --- src/bindings.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bindings.c

[PATCH] exposay: provide a cancel func to the ptr grab iface

2013-11-26 Thread pochu27
From: Emilio Pozuelo Monfort Fixes a crash when cancel is called while exposay is in progress. --- src/shell.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/src/shell.c b/src/shell.c index f102e9a..6ba1f10 100644 --- a/src/shell.c +++ b/src/shell.c @@ -5275,10 +5275,20 @@ expos

[PATCH] shell: don't crash if a pointer's focus is null

2013-11-22 Thread pochu27
From: Emilio Pozuelo Monfort It's possible for a pointer's focus to be null, e.g. because the focus surface has been bestroyed. Prevent a crash when that happens and a client takes too long to respond to a ping. Signed-off-by: Emilio Pozuelo Monfort --- src/shell.c | 3 ++- 1 file changed, 2 i

[PATCH 1/2] shell: add a client config entry

2013-11-20 Thread pochu27
From: Emilio Pozuelo Monfort --- man/weston.ini.man | 4 src/shell.c| 15 ++- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/man/weston.ini.man b/man/weston.ini.man index 4ff313d..bbb1d15 100644 --- a/man/weston.ini.man +++ b/man/weston.ini.man @@ -139,

[PATCH 2/2] man: document new focus-animation config entry

2013-11-20 Thread pochu27
From: 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 bbb1d15..cc88ca8 100644 --- a/man/weston.ini.man +++ b/man/weston.ini.man @@ -188,6 +188,12 @@ sets the effect used for opening new windows