summaryrefslogtreecommitdiff
path: root/desktop-shell/exposay.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2014-02-10 16:52:33 +0100
committerKristian Høgsberg <krh@bitplanet.net>2014-02-18 14:07:08 -0800
commita75920190eee8a6c62c170d80c782783e54e660e (patch)
tree47e2537f0b0e81b235b2bb8840e0e4b814a2a7f0 /desktop-shell/exposay.c
parente818d59e8827933511a0611aff0e9605ecacfeeb (diff)
downloadweston-a75920190eee8a6c62c170d80c782783e54e660e.tar.gz
weston-a75920190eee8a6c62c170d80c782783e54e660e.tar.bz2
weston-a75920190eee8a6c62c170d80c782783e54e660e.zip
exposay: avoid needlessly activating the active view
Signed-off-by: Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>
Diffstat (limited to 'desktop-shell/exposay.c')
-rw-r--r--desktop-shell/exposay.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/desktop-shell/exposay.c b/desktop-shell/exposay.c
index ca363589..9c649e77 100644
--- a/desktop-shell/exposay.c
+++ b/desktop-shell/exposay.c
@@ -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;