Fix Front buffer rendering does not activate when window created.
[platform/core/uifw/dali-adaptor.git] / dali / internal / window-system / common / event-handler.cpp
index 67a97d8..66ee64a 100644 (file)
@@ -52,7 +52,6 @@ Integration::Log::Filter* gSelectionEventLogFilter = Integration::Log::Filter::N
 EventHandler::EventHandler(WindowBase* windowBase, DamageObserver& damageObserver)
 : mStyleMonitor(StyleMonitor::Get()),
   mDamageObserver(damageObserver),
-  mClipboardEventNotifier(),
   mPaused(false)
 {
   // Connect signals
@@ -164,41 +163,18 @@ void EventHandler::OnWindowDamaged(const DamageArea& area)
 
 void EventHandler::OnSelectionDataSend(void* event)
 {
-  Dali::Clipboard clipboard = Clipboard::Get();
-  if(clipboard)
-  {
-    Clipboard& clipBoardImpl(GetImplementation(clipboard));
-    clipBoardImpl.ExcuteSend(event);
-  }
+  // Note that the clipboard-related operstions previously available have been moved to Clipboard class.
+  // It is advised not to handle any clipboard-specific works within this context.
+  // There are currently no immediate works required in this callback.
+  // But this function is retained for the purpose of handling the event at the window level, if needed.
 }
 
 void EventHandler::OnSelectionDataReceived(void* event)
 {
-  // We have got the selected content, inform the clipboard event listener (if we have one).
-  Dali::Clipboard clipboard     = Clipboard::Get();
-  char*           selectionData = NULL;
-  int             bufferLength  = 0;
-  if(clipboard)
-  {
-    Clipboard& clipBoardImpl(GetImplementation(clipboard));
-    clipBoardImpl.ExcuteReceive(event, selectionData, bufferLength);
-  }
-
-  if(!mClipboardEventNotifier)
-  {
-    mClipboardEventNotifier = ClipboardEventNotifier::Get();
-  }
-
-  if(selectionData && mClipboardEventNotifier && bufferLength > 0)
-  {
-    ClipboardEventNotifier& clipboardEventNotifier(ClipboardEventNotifier::GetImplementation(mClipboardEventNotifier));
-    std::string             content(selectionData, bufferLength - 1);
-
-    clipboardEventNotifier.SetContent(content);
-    clipboardEventNotifier.EmitContentSelectedSignal();
-
-    DALI_LOG_INFO(gSelectionEventLogFilter, Debug::General, "EcoreEventSelectionNotify: Content(%s) strlen(%d) buffer(%d)\n", selectionData, strlen(selectionData), bufferLength);
-  }
+  // Note that the clipboard-related operstions previously available have been moved to Clipboard class.
+  // It is advised not to handle any clipboard-specific works within this context.
+  // There are currently no immediate works required in this callback.
+  // But this function is retained for the purpose of handling the event at the window level, if needed.
 }
 
 void EventHandler::OnStyleChanged(StyleChange::Type styleChange)