- struct weston_keyboard *keyboard = data;
- struct ivi_shell_seat *shseat = get_ivi_shell_seat(keyboard->seat);
-
- if (shseat->focused_surface) {
- struct ivi_surface *surf =
- get_ivi_shell_surface(shseat->focused_surface);
- if (surf && --surf->focus_count == 0)
- weston_desktop_surface_set_activated(surf->dsurface, false);
- }