Lines Matching refs:data_device
66 SDL_WaylandDataDevice *data_device; member
368 Wayland_data_device_set_serial(input->data_device, serial); in pointer_handle_button_common()
688 Wayland_data_device_set_serial(input->data_device, serial); in keyboard_handle_key()
893 data_offer->data_device = data; in data_device_handle_data_offer()
905 SDL_WaylandDataDevice *data_device = data; in data_device_handle_enter() local
909 data_device->drag_serial = serial; in data_device_handle_enter()
912 data_device->drag_offer = wl_data_offer_get_user_data(id); in data_device_handle_enter()
916 data_device->drag_offer, FILE_MIME); in data_device_handle_enter()
926 if (wl_data_offer_get_version(data_device->drag_offer->offer) >= 3) { in data_device_handle_enter()
927 wl_data_offer_set_actions(data_device->drag_offer->offer, in data_device_handle_enter()
936 SDL_WaylandDataDevice *data_device = data; in data_device_handle_leave() local
939 if (data_device->selection_offer != NULL) { in data_device_handle_leave()
940 data_device->selection_offer = NULL; in data_device_handle_leave()
954 SDL_WaylandDataDevice *data_device = data; in data_device_handle_drop() local
962 if (data_device->drag_offer != NULL) { in data_device_handle_drop()
964 buffer = Wayland_data_offer_receive(data_device->drag_offer, in data_device_handle_drop()
988 SDL_WaylandDataDevice *data_device = data; in data_device_handle_selection() local
995 if (data_device->selection_offer != offer) { in data_device_handle_selection()
996 Wayland_data_offer_destroy(data_device->selection_offer); in data_device_handle_selection()
997 data_device->selection_offer = offer; in data_device_handle_selection()
1016 SDL_WaylandDataDevice *data_device = NULL; in Wayland_display_add_input() local
1029 data_device = SDL_calloc(1, sizeof *data_device); in Wayland_display_add_input()
1030 if (data_device == NULL) { in Wayland_display_add_input()
1034 data_device->data_device = wl_data_device_manager_get_data_device( in Wayland_display_add_input()
1037 data_device->video_data = d; in Wayland_display_add_input()
1039 if (data_device->data_device == NULL) { in Wayland_display_add_input()
1040 SDL_free(data_device); in Wayland_display_add_input()
1042 wl_data_device_set_user_data(data_device->data_device, data_device); in Wayland_display_add_input()
1043 wl_data_device_add_listener(data_device->data_device, in Wayland_display_add_input()
1044 &data_device_listener, data_device); in Wayland_display_add_input()
1045 input->data_device = data_device; in Wayland_display_add_input()
1062 if (input->data_device != NULL) { in Wayland_display_destroy_input()
1063 Wayland_data_device_clear_selection(input->data_device); in Wayland_display_destroy_input()
1064 if (input->data_device->selection_offer != NULL) { in Wayland_display_destroy_input()
1065 Wayland_data_offer_destroy(input->data_device->selection_offer); in Wayland_display_destroy_input()
1067 if (input->data_device->drag_offer != NULL) { in Wayland_display_destroy_input()
1068 Wayland_data_offer_destroy(input->data_device->drag_offer); in Wayland_display_destroy_input()
1070 if (input->data_device->data_device != NULL) { in Wayland_display_destroy_input()
1071 wl_data_device_release(input->data_device->data_device); in Wayland_display_destroy_input()
1073 SDL_free(input->data_device); in Wayland_display_destroy_input()
1106 return input->data_device; in Wayland_get_data_device()