exposay: Activate a surface when hovering it
authorEmilio Pozuelo Monfort <pochu27@gmail.com>
Tue, 19 Nov 2013 10:37:18 +0000 (11:37 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 19 Nov 2013 19:51:44 +0000 (11:51 -0800)
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>
src/shell.c

index dae31a0..09ff86c 100644 (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;
 }