[PATCH 05/10] desktop-shell: Support tracking active surfaces

Bryce Harrington bryce at osg.samsung.com
Sat Mar 5 00:18:42 UTC 2016


Activity for desktop-shell simply follows keyboard focus.  Only a single
surface can be active at a time.

Signed-off-by: Bryce Harrington <bryce at osg.samsung.com>
---
 desktop-shell/shell.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
index 780902d..2d54524 100644
--- a/desktop-shell/shell.c
+++ b/desktop-shell/shell.c
@@ -5063,6 +5063,8 @@ activate(struct desktop_shell *shell, struct weston_surface *es,
 
 	old_es = state->keyboard_focus;
 	focus_state_set_focus(state, es);
+	if (old_es != NULL)
+		weston_surface_deactivate(old_es, seat);
 
 	if (shsurf->state.fullscreen && configure)
 		shell_configure_fullscreen(shsurf);
-- 
1.9.1



More information about the wayland-devel mailing list