exposay: avoid needlessly activating the active view
Signed-off-by: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
diff --git a/desktop-shell/exposay.c b/desktop-shell/exposay.c
index ca36358..9c649e7 100644
--- a/desktop-shell/exposay.c
+++ b/desktop-shell/exposay.c
@@ -153,6 +153,9 @@
{
struct weston_view *view = esurface->view;
+ if (shell->exposay.focus_current == view)
+ return;
+
shell->exposay.row_current = esurface->row;
shell->exposay.column_current = esurface->column;
shell->exposay.cur_output = esurface->eoutput;