From 320a8d7f39c8a4c8ddc03a7d2fbfebd809137b36 Mon Sep 17 00:00:00 2001 From: Nicolas Guyomard Date: Thu, 4 Dec 2014 15:42:52 +0100 Subject: shell: update pointer focus when surface is minimized. Change-Id: Ib8ce85b93acaf4bb26cd860192ff87f1012d5bca --- desktop-shell/shell.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index f926d9df..03e3d244 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -2679,8 +2679,12 @@ set_minimized(struct weston_surface *surface, uint32_t is_true) if (!seat->keyboard) continue; focus = weston_surface_get_main_surface(seat->keyboard->focus); - if (focus == view->surface) + if (focus == view->surface) { weston_keyboard_set_focus(seat->keyboard, NULL); + weston_pointer_set_focus(seat->pointer, NULL, + wl_fixed_from_int(0), + wl_fixed_from_int(0)); + } } } else { -- cgit v1.2.3