Initialize copy&page, drag&drop values to prevent wayland send, receive event conflict 75/299075/2
authorTaehyub Kim <taehyub.kim@samsung.com>
Tue, 19 Sep 2023 06:44:59 +0000 (15:44 +0900)
committerTaehyub Kim <taehyub.kim@samsung.com>
Tue, 19 Sep 2023 06:53:43 +0000 (15:53 +0900)
Change-Id: Idf8f915869dfc5488a04b81b00b5f4ff5a6d62a2

dali/internal/clipboard/tizen-wayland/clipboard-impl-ecore-wl.cpp
dali/internal/drag-and-drop/tizen-wayland/drag-and-drop-impl-ecore-wl2.h

index d2bfa43..7b6e4c9 100644 (file)
@@ -290,7 +290,7 @@ struct Clipboard::Impl
     mDataSelectedSignal.Emit(selectedType);
   }
 
-  uint32_t             mSerial{0u};
+  uint32_t             mSerial{std::numeric_limits<uint32_t>::max()};
   std::string          mMimeType;
   std::string          mData;
   Ecore_Event_Handler* mSendHandler{nullptr};
index acb1699..341f68e 100644 (file)
@@ -143,7 +143,7 @@ private:
 
 private:
   Dali::Window                      mDragWindow;
-  uint32_t                          mSerial{0u};
+  uint32_t                          mSerial{std::numeric_limits<uint32_t>::max()};
   Ecore_Event_Handler*              mSendHandler{nullptr};
   Ecore_Event_Handler*              mSourceEndHandler{nullptr};
   Ecore_Event_Handler*              mSourceDropHandler{nullptr};
@@ -152,8 +152,8 @@ private:
   Ecore_Event_Handler*              mDropHandler{nullptr};
   Ecore_Event_Handler*              mEnterHandler{nullptr};
   Ecore_Event_Handler*              mLeaveHandler{nullptr};
-  int                               mTargetIndex{0};
-  int                               mWindowTargetIndex{0};
+  int                               mTargetIndex{-1};
+  int                               mWindowTargetIndex{-1};
   std::string                       mMimeType;
   std::string                       mData;
   int                               mDataSize{0};