[3.0] Ecore Event Handler struct initializations. 78/105478/4
authorVictor Cebollada <v.cebollada@samsung.com>
Fri, 16 Dec 2016 11:13:17 +0000 (11:13 +0000)
committerVíctor Cebollada <v.cebollada@samsung.com>
Fri, 16 Dec 2016 17:18:26 +0000 (09:18 -0800)
* Wayland and x11 implementations need some initializations.

Change-Id: I73368dda8b37205322c128877e5b3d7c60fc8a96
Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>
adaptors/ecore/wayland/event-handler-ecore-wl.cpp
adaptors/x11/ecore-x-event-handler.cpp

index 130d572..abd9bc3 100644 (file)
@@ -397,6 +397,11 @@ struct EventHandler::Impl
         ecoreKeyDownEvent.timestamp = keyEvent->timestamp;
         ecoreKeyDownEvent.modifiers = EcoreInputModifierToEcoreIMFModifier ( keyEvent->modifiers );
         ecoreKeyDownEvent.locks     = (Ecore_IMF_Keyboard_Locks) ECORE_IMF_KEYBOARD_LOCK_NONE;
+#ifdef ECORE_IMF_1_13
+        ecoreKeyDownEvent.dev_name  = "";
+        ecoreKeyDownEvent.dev_class = ECORE_IMF_DEVICE_CLASS_KEYBOARD;
+        ecoreKeyDownEvent.dev_subclass = ECORE_IMF_DEVICE_SUBCLASS_NONE;
+#endif // ECORE_IMF_1_13
 
         eventHandled = ecore_imf_context_filter_event( imfContext,
                                                        ECORE_IMF_EVENT_KEY_DOWN,
index a611d8e..38c64ac 100644 (file)
@@ -669,6 +669,8 @@ struct EventHandler::Impl
         ecoreKeyDownEvent.locks     = (Ecore_IMF_Keyboard_Locks) ECORE_IMF_KEYBOARD_LOCK_NONE;
 #ifdef ECORE_IMF_1_13
         ecoreKeyDownEvent.dev_name  = "";
+        ecoreKeyDownEvent.dev_class = ECORE_IMF_DEVICE_CLASS_KEYBOARD;
+        ecoreKeyDownEvent.dev_subclass = ECORE_IMF_DEVICE_SUBCLASS_NONE;
 #endif // ECORE_IMF_1_13
 
         eventHandled = ecore_imf_context_filter_event( imfContext,