-
-static void
-ivi_shell_seat_handle_keyboard_focus(struct wl_listener *listener, void *data)
-{
- 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);
- }
-
- shseat->focused_surface = weston_surface_get_main_surface(keyboard->focus);
-
- 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, true);
- }
-}
-