[PATCH weston 2/2] exposay: avoid needlessly activating the active view
Emilio Pozuelo Monfort
pochu27 at gmail.com
Mon Feb 10 07:52:33 PST 2014
From: Emilio Pozuelo Monfort <emilio.pozuelo at collabora.co.uk>
Signed-off-by: Emilio Pozuelo Monfort <emilio.pozuelo at collabora.co.uk>
---
desktop-shell/exposay.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/desktop-shell/exposay.c b/desktop-shell/exposay.c
index fe7a3a7..feadfdc 100644
--- a/desktop-shell/exposay.c
+++ b/desktop-shell/exposay.c
@@ -138,6 +138,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;
--
1.9.rc1
More information about the wayland-devel
mailing list