EAPI Ecore_Wl2_Clipboard_State ecore_wl2_window_clipboard_state_get(Ecore_Wl2_Window *win);
EAPI void ecore_wl2_clipboard_show(Ecore_Wl2_Window *win);
EAPI void ecore_wl2_clipboard_hide(Ecore_Wl2_Window *win);
+EAPI Eina_Bool ecore_wl2_clipboard_data_only_set(Eina_Bool data_only);
//
// TIZEN_ONLY(20171108) : add functions for keyboard
}
static void
-_tizen_clipboard_cb_allowed_data_only(void *data EINA_UNUSED, struct tizen_clipboard *tizen_clipboard EINA_UNUSED, uint32_t allowed EINA_UNUSED)
+_tizen_clipboard_cb_allowed_data_only(void *data, struct tizen_clipboard *tizen_clipboard EINA_UNUSED, uint32_t allowed)
{
+ Ecore_Wl2_Display *ewd = NULL;
+ Ecore_Wl2_Input *input = NULL;
+
+ ewd = data;
+ input = ecore_wl2_input_default_input_get(ewd);
+ if (!input) return;
+
+ if (allowed)
+ input->is_data_only = EINA_TRUE;
+ else
+ input->is_data_only = EINA_FALSE;
}
static const struct tizen_clipboard_listener _tizen_clipboard_listener =
uint32_t enter_serial;
Ecore_Window window_id;
} drag, selection;
+// TIZEN_ONLY(20170227) : tizen clipboard v2
+ Eina_Bool is_data_only;
+//
unsigned int seat_version;
unsigned int id;
tizen_clipboard_hide(win->display->wl.tz_clipboard, win->surface);
}
+
+EAPI Eina_Bool
+ecore_wl2_clipboard_data_only_set(Eina_Bool data_only)
+{
+ Ecore_Wl2_Display *ewd = NULL;
+ Ecore_Wl2_Input *input = NULL;
+
+ ewd = ecore_wl2_connected_display_get(NULL);
+ if (!ewd) return EINA_FALSE;
+ input = ecore_wl2_input_default_input_get(ewd);
+ if (!input) return EINA_FALSE;
+
+ if (!ewd->wl.tz_clipboard) return EINA_FALSE;
+
+ tizen_clipboard_set_data_only(ewd->wl.tz_clipboard, data_only);
+ ecore_wl2_display_sync(ewd);
+
+ return input->is_data_only;
+}
//
// TIZEN_ONLY(20171108) : add functions for keyboard
{
return window->ignore_output_transform;
}
-//
\ No newline at end of file
+//