From: Doyoun Kang Date: Sun, 12 Nov 2017 07:56:30 +0000 (+0900) Subject: ecore_wl2: tizen_clipboard_listener function for data_selected X-Git-Tag: submit/sandbox/upgrade/efl120/20180319.053334~1030 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c182ed57027e30482d16701ebe105a8332fa82d;p=platform%2Fupstream%2Fefl.git ecore_wl2: tizen_clipboard_listener function for data_selected @tizen_feature Change-Id: I37e0da07c9bc131d69807fdc25c9f9b31c8e6a76 --- diff --git a/src/lib/ecore_wl2/ecore_wl2_display.c b/src/lib/ecore_wl2/ecore_wl2_display.c index efe4410..38e0d69 100644 --- a/src/lib/ecore_wl2/ecore_wl2_display.c +++ b/src/lib/ecore_wl2/ecore_wl2_display.c @@ -570,8 +570,20 @@ static const struct tizen_indicator_listener _tizen_indicator_listener = }; static void -_tizen_clipboard_cb_data_selected(void *data EINA_UNUSED, struct tizen_clipboard *tizen_clipboard EINA_UNUSED, struct wl_surface *surface) +_tizen_clipboard_cb_data_selected(void *data, struct tizen_clipboard *tizen_clipboard EINA_UNUSED, struct wl_surface *surface) { + Ecore_Wl2_Window *win = NULL; + Ecore_Wl2_Display *ewd = data; + Ecore_Wl2_Event_Clipboard_Data_Selected *ev; + + if (!surface) return; + win = _ecore_wl2_display_window_surface_find(ewd, surface); + if (!win) return; + + if (!(ev = calloc(1, sizeof(Ecore_Wl2_Event_Clipboard_Data_Selected)))) return; + ev->win = win->id; + + ecore_event_add(ECORE_WL2_EVENT_CLIPBOARD_DATA_SELECTED, ev, NULL, NULL); } static void