diff options
author | Nicolas Guyomard <nicolas.guyomard@open.eurogiciel.org> | 2014-12-04 15:42:52 +0100 |
---|---|---|
committer | Philippe Coval <philippe.coval@open.eurogiciel.org> | 2015-03-25 15:12:13 +0100 |
commit | 320a8d7f39c8a4c8ddc03a7d2fbfebd809137b36 (patch) | |
tree | 54246182e674d8a66b7129374af6257f7c327d5e | |
parent | 4d487b46d100cb7227de8d0663c108ea3d660ee8 (diff) | |
download | weston-320a8d7f39c8a4c8ddc03a7d2fbfebd809137b36.tar.gz weston-320a8d7f39c8a4c8ddc03a7d2fbfebd809137b36.tar.bz2 weston-320a8d7f39c8a4c8ddc03a7d2fbfebd809137b36.zip |
shell: update pointer focus when surface is minimized.
Change-Id: Ib8ce85b93acaf4bb26cd860192ff87f1012d5bca
-rw-r--r-- | desktop-shell/shell.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 { |