{
struct tablet_shell *shell = data;
struct weston_compositor *compositor = shell->compositor;
- struct weston_seat *seat = (struct weston_seat *) compositor->seat;
+ struct weston_seat *seat;
- weston_surface_activate(shell->home_surface, seat);
+ wl_list_for_each(seat, &compositor->seat_list, link)
+ weston_surface_activate(shell->home_surface, seat);
}
static void
struct weston_surface *surface)
{
struct weston_compositor *compositor = shell->compositor;
- struct weston_seat *seat = (struct weston_seat *) compositor->seat;
+ struct weston_seat *seat;
struct weston_surface *current;
if (shell->state == STATE_SWITCHER) {
}
} else {
fprintf(stderr, "switch to %p\n", surface);
- weston_surface_activate(surface, seat);
+ wl_list_for_each(seat, &compositor->seat_list, link)
+ weston_surface_activate(surface, seat);
tablet_shell_set_state(shell, STATE_TASK);
weston_zoom_run(surface, 0.3, 1.0, NULL, NULL);
}
}
static void
-go_home(struct tablet_shell *shell)
+go_home(struct tablet_shell *shell, struct weston_seat *seat)
{
- struct weston_seat *seat =
- (struct weston_seat *) shell->compositor->seat;
-
if (shell->state == STATE_SWITCHER)
tablet_shell_send_hide_switcher(&shell->resource);
toggle_switcher(shell);
break;
default:
- go_home(shell);
+ go_home(shell, (struct weston_seat *) seat);
break;
}
}