Add copy & paste to clipboard 86/293586/2
authorBowon Ryu <bowon.ryu@samsung.com>
Wed, 31 May 2023 10:46:23 +0000 (19:46 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Thu, 1 Jun 2023 02:43:15 +0000 (11:43 +0900)
commit56821877427fe6f9317eeef66de548130ec3374f
tree5542830e9a93b8bae6529b7d24a138e75468622c
parentd44409a5637b5ffa930fda4768fc3bcfc67296ee
Add copy & paste to clipboard

It looks ECORE_WL2_EVENT_SELECTION_DATA_READY has been deprecated since a very long time ago.
Change to ECORE_WL2_EVENT_OFFER_DATA_READY for Paste operation.

+ Depending on the environment, such as whether cbhm is used or not,
the length received as an event may be string length or buffer length.
Add null validation to the event handler to ensure it works.

Currently known exception cases are resolved,
but this logic may need to be modified if another exception appears.

This reverts commit 9900645a13deda1aa7cdbe35ceab1c84d97cb60d.

Change-Id: Idf99fec07524bab8b6338b7abc7c235f3ddc6d17
dali/internal/clipboard/common/clipboard-impl.h
dali/internal/clipboard/generic/clipboard-impl-generic.cpp
dali/internal/clipboard/tizen-wayland/clipboard-impl-ecore-wl.cpp
dali/internal/clipboard/ubuntu-x11/clipboard-impl-x.cpp
dali/internal/window-system/common/event-handler.cpp
dali/internal/window-system/tizen-wayland/ecore-wl2/window-base-ecore-wl2.cpp