exposay: Activate a surface when hovering it

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.pozuelo@collabora.co.uk>
This commit is contained in:
Emilio Pozuelo Monfort 2013-11-19 11:37:18 +01:00 committed by Kristian Høgsberg
parent 8224309f14
commit 5c22ce652d
1 changed files with 1 additions and 2 deletions

View File

@ -5078,8 +5078,7 @@ exposay_highlight_surface(struct desktop_shell *shell,
view = esurface->view;
}
animate_focus_change(shell, shell->exposay.workspace,
shell->exposay.focus_current, view);
activate(shell, view->surface, shell->exposay.seat);
shell->exposay.focus_current = view;
}