return offer_res;
}
+static Eina_Bool
+_e_comp_wl_data_secondary_list_resource_check(struct wl_resource *data_device_res)
+{
+ struct wl_resource *data_device_res_tmp;
+ E_Client *tmp;
+ Eina_List *l;
+ E_Comp_Wl_Data *comp_wl = e_comp_wl_get();
+
+ if (comp_wl->selection.secondary_list == NULL)
+ return EINA_FALSE;
+
+ EINA_LIST_FOREACH(comp_wl->selection.secondary_list, l, tmp)
+ {
+ struct wl_resource *surface = e_comp_wl_client_surface_get(tmp);
+ if (!surface) continue;
+
+ data_device_res_tmp = e_comp_wl_data_find_for_client(wl_resource_get_client(surface));
+ if (!data_device_res_tmp) continue;
+
+ if (data_device_res_tmp == data_device_res)
+ return EINA_TRUE;
+ }
+
+ return EINA_FALSE;
+}
+
EINTERN void
e_comp_wl_data_device_keyboard_focus_set(void)
{
eina_list_remove(comp_wl->selection.data_only_list,
data_device_res);
+ if (_e_comp_wl_data_secondary_list_resource_check(data_device_res)) return;
+
if (source && !source->is_manual)
{
offer_res =