From 7908bffdf93059ddcb4e290cc597bd1c262a2a1f Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Thu, 30 Jan 2014 13:49:39 +0100 Subject: [PATCH] dim-layer: fix dimming for unfocused surfaces 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 89d908d5..c6739d43 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -4304,14 +4304,14 @@ activate(struct desktop_shell *shell, struct weston_surface *es, else restore_all_output_modes(shell->compositor); + /* Update the surface’s layer. This brings it to the top of the stacking + * order as appropriate. */ + shell_surface_update_layer(shsurf); + if (shell->focus_animation_type != ANIMATION_NONE) { ws = get_current_workspace(shell); animate_focus_change(shell, ws, get_default_view(old_es), get_default_view(es)); } - - /* Update the surface’s layer. This brings it to the top of the stacking - * order as appropriate. */ - shell_surface_update_layer(shsurf); } /* no-op func for checking black surface */