ecore_wl2_dnd: Add window id to Ecore_Wl2_Event_Offer_Data_Ready 70/299170/1 accepted/tizen/8.0/unified/20231005.094813 accepted/tizen/unified/20230925.091523 tizen_8.0_m2_release
authorJunseok Kim <juns.kim@samsung.com>
Thu, 21 Sep 2023 05:52:06 +0000 (14:52 +0900)
committerJunseok Kim <juns.kim@samsung.com>
Thu, 21 Sep 2023 05:52:08 +0000 (14:52 +0900)
@tizen_only

Change-Id: I397219d21784dae9768f7b8705cf94c8ac78787c

src/lib/ecore_wl2/Ecore_Wl2.h
src/lib/ecore_wl2/ecore_wl2_dnd.c

index 3422174..6e32849 100644 (file)
@@ -415,6 +415,9 @@ typedef struct _Ecore_Wl2_Event_Offer_Data_Ready
    const char *mimetype;
    unsigned int seat;
    Ecore_Wl2_Display *display;
+   // TIZEN_ONLY(230921): add window id for recognize which window is received data
+   unsigned int win;
+   //
 } Ecore_Wl2_Event_Offer_Data_Ready;
 
 /** @internal */
index ba24abb..cb3357b 100644 (file)
@@ -893,6 +893,9 @@ _offer_receive_fd_cb(void *data, Ecore_Fd_Handler *fdh)
         ev->seat = buf->offer->input->id;
         ev->display = buf->offer->input->display;
         ev->display->refs++;
+        // TIZEN_ONLY(230921): add window id for recognize which window is received data
+        ev->win = buf->offer->window_id;
+        //
         ecore_event_add(ECORE_WL2_EVENT_OFFER_DATA_READY, ev, _free_buf, buf);
         //TIZEN_ONLY(20230913): Fix pipe fd management error
         close(fd);