exposay: avoid needlessly activating the active view
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Mon, 10 Feb 2014 15:52:33 +0000 (16:52 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 18 Feb 2014 22:07:08 +0000 (14:07 -0800)
Signed-off-by: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
desktop-shell/exposay.c

index ca36358..9c649e7 100644 (file)
@@ -153,6 +153,9 @@ exposay_highlight_surface(struct desktop_shell *shell,
 {
        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;