Upstream version 10.38.220.0
[platform/framework/web/crosswalk.git] / src / ui / events / test / events_test_utils_x11.cc
index c16b7e8..28558a2 100644 (file)
@@ -171,6 +171,7 @@ void ScopedXI2Event::InitKeyEvent(EventType type,
 }
 
 void ScopedXI2Event::InitGenericKeyEvent(int deviceid,
+                                         int sourceid,
                                          EventType type,
                                          KeyboardCode key_code,
                                          int flags) {
@@ -183,6 +184,7 @@ void ScopedXI2Event::InitGenericKeyEvent(int deviceid,
   xievent->display = display;
   xievent->mods.effective = XEventState(flags);
   xievent->detail = XKeyCodeForWindowsKeyCode(key_code, flags, display);
+  xievent->sourceid = sourceid;
 }
 
 void ScopedXI2Event::InitGenericButtonEvent(int deviceid,