• Home
  • Raw
  • Download

Lines Matching refs:seat

52 	struct weston_seat *seat;  member
184 struct weston_seat *seat; member
210 get_shell_seat(struct weston_seat *seat);
276 weston_seat_break_desktop_grabs(pointer->seat); in shell_grab_start()
399 weston_seat_break_desktop_grabs(touch->seat); in shell_touch_grab_start()
674 activate(state->shell, next, state->seat, in focus_state_surface_destroy()
693 focus_state_create(struct desktop_shell *shell, struct weston_seat *seat, in focus_state_create() argument
705 state->seat = seat; in focus_state_create()
710 wl_signal_add(&seat->destroy_signal, in focus_state_create()
718 ensure_focus_state(struct desktop_shell *shell, struct weston_seat *seat) in ensure_focus_state() argument
724 if (state->seat == seat) in ensure_focus_state()
728 state = focus_state_create(shell, seat, ws); in ensure_focus_state()
754 struct weston_seat *seat, *next_seat; in restore_focus_state() local
764 weston_seat_get_keyboard(state->seat); in restore_focus_state()
766 wl_list_remove(&state->seat->link); in restore_focus_state()
768 &state->seat->link); in restore_focus_state()
780 wl_list_for_each_safe(seat, next_seat, &pending_seat_list, link) { in restore_focus_state()
782 weston_seat_get_keyboard(seat); in restore_focus_state()
784 wl_list_insert(&shell->compositor->seat_list, &seat->link); in restore_focus_state()
795 struct weston_seat *seat) in replace_focus_state() argument
797 struct weston_keyboard *keyboard = weston_seat_get_keyboard(seat); in replace_focus_state()
801 if (state->seat == seat) { in replace_focus_state()
903 struct weston_seat *seat = data; in seat_destroyed() local
910 if (state->seat == seat) in seat_destroyed()
1272 struct weston_seat *seat; in surface_keyboard_focus_lost() local
1275 wl_list_for_each(seat, &compositor->seat_list, link) { in surface_keyboard_focus_lost()
1277 weston_seat_get_keyboard(seat); in surface_keyboard_focus_lost()
1290 struct weston_seat *seat, in take_surface_to_workspace_by_seat() argument
1293 struct weston_keyboard *keyboard = weston_seat_get_keyboard(seat); in take_surface_to_workspace_by_seat()
1318 replace_focus_state(shell, to, seat); in take_surface_to_workspace_by_seat()
1345 state = ensure_focus_state(shell, seat); in take_surface_to_workspace_by_seat()
1789 view = weston_compositor_pick_view(pointer->seat->compositor, in busy_cursor_grab_focus()
1816 struct weston_seat *seat = pointer->seat; in busy_cursor_grab_button() local
1819 activate(shsurf->shell, shsurf->view, seat, in busy_cursor_grab_button()
1823 activate(shsurf->shell, shsurf->view, seat, in busy_cursor_grab_button()
1889 struct shell_seat *seat = get_shell_seat(keyboard->seat); in handle_keyboard_focus() local
1891 if (seat->focused_surface) { in handle_keyboard_focus()
1892 struct shell_surface *shsurf = get_shell_surface(seat->focused_surface); in handle_keyboard_focus()
1897 seat->focused_surface = weston_surface_get_main_surface(keyboard->focus); in handle_keyboard_focus()
1899 if (seat->focused_surface) { in handle_keyboard_focus()
1900 struct shell_surface *shsurf = get_shell_surface(seat->focused_surface); in handle_keyboard_focus()
2218 struct weston_seat *seat; in get_focused_output() local
2221 wl_list_for_each(seat, &compositor->seat_list, link) { in get_focused_output()
2222 struct weston_touch *touch = weston_seat_get_touch(seat); in get_focused_output()
2223 struct weston_pointer *pointer = weston_seat_get_pointer(seat); in get_focused_output()
2225 weston_seat_get_keyboard(seat); in get_focused_output()
2262 struct shell_seat *seat; in shell_seat_caps_changed() local
2264 seat = container_of(listener, struct shell_seat, caps_changed_listener); in shell_seat_caps_changed()
2265 keyboard = weston_seat_get_keyboard(seat->seat); in shell_seat_caps_changed()
2266 pointer = weston_seat_get_pointer(seat->seat); in shell_seat_caps_changed()
2269 wl_list_empty(&seat->keyboard_focus_listener.link)) { in shell_seat_caps_changed()
2271 &seat->keyboard_focus_listener); in shell_seat_caps_changed()
2273 wl_list_remove(&seat->keyboard_focus_listener.link); in shell_seat_caps_changed()
2274 wl_list_init(&seat->keyboard_focus_listener.link); in shell_seat_caps_changed()
2278 wl_list_empty(&seat->pointer_focus_listener.link)) { in shell_seat_caps_changed()
2280 &seat->pointer_focus_listener); in shell_seat_caps_changed()
2282 wl_list_remove(&seat->pointer_focus_listener.link); in shell_seat_caps_changed()
2283 wl_list_init(&seat->pointer_focus_listener.link); in shell_seat_caps_changed()
2288 create_shell_seat(struct weston_seat *seat) in create_shell_seat() argument
2298 shseat->seat = seat; in create_shell_seat()
2301 wl_signal_add(&seat->destroy_signal, in create_shell_seat()
2311 wl_signal_add(&seat->updated_caps_signal, in create_shell_seat()
2319 get_shell_seat(struct weston_seat *seat) in get_shell_seat() argument
2323 listener = wl_signal_get(&seat->destroy_signal, destroy_shell_seat); in get_shell_seat()
2527 struct weston_seat *seat; in map() local
2552 wl_list_for_each(seat, &compositor->seat_list, link) in map()
2553 activate(shell, shsurf->view, seat, in map()
2713 struct weston_seat *seat, uint32_t serial, void *shell) in desktop_surface_move() argument
2715 struct weston_pointer *pointer = weston_seat_get_pointer(seat); in desktop_surface_move()
2716 struct weston_touch *touch = weston_seat_get_touch(seat); in desktop_surface_move()
2744 struct weston_seat *seat, uint32_t serial, in desktop_surface_resize() argument
2747 struct weston_pointer *pointer = weston_seat_get_pointer(seat); in desktop_surface_resize()
2871 struct weston_seat *seat; in end_busy_cursor() local
2873 wl_list_for_each(seat, &compositor->seat_list, link) { in end_busy_cursor()
2874 struct weston_pointer *pointer = weston_seat_get_pointer(seat); in end_busy_cursor()
2914 struct weston_seat *seat; in desktop_surface_ping_timeout() local
2922 wl_list_for_each(seat, &shell->compositor->seat_list, link) { in desktop_surface_ping_timeout()
2923 struct weston_pointer *pointer = weston_seat_get_pointer(seat); in desktop_surface_ping_timeout()
3521 do_zoom(struct weston_seat *seat, const struct timespec *time, uint32_t key, in do_zoom() argument
3524 struct weston_compositor *compositor = seat->compositor; in do_zoom()
3525 struct weston_pointer *pointer = weston_seat_get_pointer(seat); in do_zoom()
3530 weston_log("Zoom hotkey pressed but seat '%s' contains no pointer.\n", seat->seat_name); in do_zoom()
3560 weston_output_activate_zoom(output, seat); in do_zoom()
3575 do_zoom(pointer->seat, time, 0, event->axis, event->value); in zoom_axis_binding()
3582 do_zoom(keyboard->seat, time, key, 0, 0); in zoom_key_binding()
3835 struct weston_seat *seat, uint32_t flags) in activate() argument
3851 activate(shell, shsurf_child->view, seat, flags); in activate()
3860 weston_view_activate(view, seat, flags); in activate()
3862 state = ensure_focus_state(shell, seat); in activate()
3903 activate_binding(struct weston_seat *seat, in activate_binding() argument
3921 activate(shell, focus_view, seat, flags); in activate_binding()
3934 activate_binding(pointer->seat, data, pointer->focus, in click_to_activate_binding()
3949 activate_binding(touch->seat, data, touch->focus, in touch_to_activate_binding()
3956 struct weston_seat *seat, *next; in unfocus_all_seats() local
3958 wl_list_for_each_safe(seat, next, &shell->compositor->seat_list, link) { in unfocus_all_seats()
3960 weston_seat_get_keyboard(seat); in unfocus_all_seats()
4220 struct weston_seat *seat; in idle_handler() local
4222 wl_list_for_each(seat, &shell->compositor->seat_list, link) in idle_handler()
4223 weston_seat_break_desktop_grabs(seat); in idle_handler()
4295 struct weston_seat *seat; in weston_view_set_initial_position() local
4303 wl_list_for_each(seat, &compositor->seat_list, link) { in weston_view_set_initial_position()
4304 struct weston_pointer *pointer = weston_seat_get_pointer(seat); in weston_view_set_initial_position()
4564 keyboard->seat, in switcher_destroy()
4605 struct weston_seat *seat = grab->keyboard->seat; in switcher_modifier() local
4607 if ((seat->modifier_state & switcher->shell->binding_modifier) == 0) in switcher_modifier()
4769 take_surface_to_workspace_by_seat(shell, keyboard->seat, new_index); in workspace_move_surface_up_binding()
4786 take_surface_to_workspace_by_seat(shell, keyboard->seat, new_index); in workspace_move_surface_down_binding()
5136 struct weston_seat *seat = data; in handle_seat_created() local
5138 create_shell_seat(seat); in handle_seat_created()
5145 struct weston_seat *seat; in wet_shell_init() local
5236 wl_list_for_each(seat, &ec->seat_list, link) in wet_shell_init()
5237 handle_seat_created(NULL, seat); in wet_shell_init()