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.
This commit is contained in:
Emilio Pozuelo Monfort
2014-01-30 13:49:39 +01:00
committed by Kristian Høgsberg
parent bf539e39c1
commit 7908bffdf9
+4 -4
View File
@@ -4304,14 +4304,14 @@ activate(struct desktop_shell *shell, struct weston_surface *es,
else else
restore_all_output_modes(shell->compositor); restore_all_output_modes(shell->compositor);
/* Update the surfaces 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) { if (shell->focus_animation_type != ANIMATION_NONE) {
ws = get_current_workspace(shell); ws = get_current_workspace(shell);
animate_focus_change(shell, ws, get_default_view(old_es), get_default_view(es)); animate_focus_change(shell, ws, get_default_view(old_es), get_default_view(es));
} }
/* Update the surfaces 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 */ /* no-op func for checking black surface */