Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / ozone / ui / events / event_factory_ozone_wayland.cc
index bb372b2..9629cb5 100644 (file)
@@ -3,6 +3,8 @@
 // found in the LICENSE file.
 
 #include "ozone/ui/events/event_factory_ozone_wayland.h"
+#include "base/bind.h"
+
 
 namespace ui {
 
@@ -56,6 +58,12 @@ EventFactoryOzoneWayland::GetOutputChangeObserver() const {
 void EventFactoryOzoneWayland::SetEventConverterOzoneWayland(
     EventConverterOzoneWayland* converter) {
   event_converter_ = converter;
+  if (!event_converter_)
+    return;
+
+  event_converter_->SetDispatchCallback(
+      base::Bind(base::IgnoreResult(&EventFactoryOzoneWayland::DispatchEvent),
+          base::Unretained(this)));
 }
 
 EventConverterOzoneWayland* EventFactoryOzoneWayland::EventConverter() const {