• Home
  • Raw
  • Download

Lines Matching refs:seat

149 	if (offer->source->seat &&  in data_offer_choose_action()
234 if (offer->source->seat || in data_offer_finish()
392 if (source->seat) { in data_source_set_actions()
501 struct weston_seat *seat, in weston_drag_set_focus() argument
506 struct wl_display *display = seat->compositor->wl_display; in weston_drag_set_focus()
538 resource = wl_resource_find_for_client(&seat->drag_resource_list, in weston_drag_set_focus()
579 view = weston_compositor_pick_view(pointer->seat->compositor, in drag_grab_focus()
583 weston_drag_set_focus(&drag->base, pointer->seat, view, sx, sy); in drag_grab_focus()
619 struct weston_seat *seat) in data_device_end_drag_grab() argument
632 weston_drag_set_focus(drag, seat, NULL, 0, 0); in data_device_end_drag_grab()
641 data_device_end_drag_grab(&drag->base, pointer->seat); in data_device_end_pointer_drag_grab()
674 data_source->seat = NULL; in drag_grab_button()
741 data_device_end_drag_grab(&drag->base, touch->seat); in data_device_end_touch_drag_grab()
772 view = weston_compositor_pick_view(touch->seat->compositor, in drag_grab_touch_focus()
776 weston_drag_set_focus(&drag->base, touch->seat, in drag_grab_touch_focus()
872 struct weston_pointer *pointer = grab->keyboard->seat->pointer_state; in drag_grab_keyboard_cancel()
873 struct weston_touch *touch = grab->keyboard->seat->touch_state; in drag_grab_keyboard_cancel()
918 weston_seat_get_keyboard(pointer->seat); in weston_pointer_start_drag()
980 weston_seat_get_keyboard(touch->seat); in weston_touch_start_drag()
1031 struct weston_seat *seat = wl_resource_get_user_data(resource); in data_device_start_drag() local
1032 struct weston_pointer *pointer = weston_seat_get_pointer(seat); in data_device_start_drag()
1033 struct weston_touch *touch = weston_seat_get_touch(seat); in data_device_start_drag()
1077 source->seat = seat; in data_device_start_drag()
1083 struct weston_seat *seat = container_of(listener, struct weston_seat, in destroy_selection_data_source() local
1085 struct weston_keyboard *keyboard = weston_seat_get_keyboard(seat); in destroy_selection_data_source()
1089 seat->selection_data_source = NULL; in destroy_selection_data_source()
1094 data_device = wl_resource_find_for_client(&seat->drag_resource_list, in destroy_selection_data_source()
1100 wl_signal_emit(&seat->selection_signal, seat); in destroy_selection_data_source()
1118 weston_seat_send_selection(struct weston_seat *seat, struct wl_client *client) in weston_seat_send_selection() argument
1123 wl_resource_for_each(data_device, &seat->drag_resource_list) { in weston_seat_send_selection()
1127 if (seat->selection_data_source) { in weston_seat_send_selection()
1128 offer = weston_data_source_send_offer(seat->selection_data_source, in weston_seat_send_selection()
1138 weston_seat_set_selection(struct weston_seat *seat, in weston_seat_set_selection() argument
1142 struct weston_keyboard *keyboard = weston_seat_get_keyboard(seat); in weston_seat_set_selection()
1144 if (seat->selection_data_source && in weston_seat_set_selection()
1145 seat->selection_serial - serial < UINT32_MAX / 2) in weston_seat_set_selection()
1148 if (seat->selection_data_source) { in weston_seat_set_selection()
1149 seat->selection_data_source->cancel(seat->selection_data_source); in weston_seat_set_selection()
1150 wl_list_remove(&seat->selection_data_source_listener.link); in weston_seat_set_selection()
1151 seat->selection_data_source = NULL; in weston_seat_set_selection()
1154 seat->selection_data_source = source; in weston_seat_set_selection()
1155 seat->selection_serial = serial; in weston_seat_set_selection()
1163 weston_seat_send_selection(seat, wl_resource_get_client(focus->resource)); in weston_seat_set_selection()
1166 wl_signal_emit(&seat->selection_signal, seat); in weston_seat_set_selection()
1169 seat->selection_data_source_listener.notify = in weston_seat_set_selection()
1172 &seat->selection_data_source_listener); in weston_seat_set_selection()
1181 struct weston_seat *seat = wl_resource_get_user_data(resource); in data_device_set_selection() local
1184 if (!seat || !source_resource) in data_device_set_selection()
1197 weston_seat_set_selection(seat, source, serial); in data_device_set_selection()
1276 source->seat = NULL; in create_data_source()
1299 struct weston_seat *seat = wl_resource_get_user_data(seat_resource); in get_data_device() local
1311 if (seat) { in get_data_device()
1312 wl_list_insert(&seat->drag_resource_list, in get_data_device()
1319 seat, unbind_data_device); in get_data_device()
1346 wl_data_device_set_keyboard_focus(struct weston_seat *seat) in wl_data_device_set_keyboard_focus() argument
1349 struct weston_keyboard *keyboard = weston_seat_get_keyboard(seat); in wl_data_device_set_keyboard_focus()
1358 weston_seat_send_selection(seat, wl_resource_get_client(focus->resource)); in wl_data_device_set_keyboard_focus()