evas: simplify seat-getting during key event dispatch
authorMike Blumenkrantz <zmike@osg.samsung.com>
Fri, 2 Jun 2017 22:23:45 +0000 (18:23 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Fri, 2 Jun 2017 22:23:42 +0000 (18:23 -0400)
src/lib/evas/canvas/evas_events.c

index 5c77157..94960f0 100644 (file)
@@ -3060,11 +3060,7 @@ _key_event_dispatch(Evas_Public_Data *e, void *event_info,
      {
         const char *name = efl_input_device_name_get(device);
 
-        while ((device = efl_input_device_parent_get(device)))
-          {
-             if (efl_input_device_type_get(device) == EFL_INPUT_DEVICE_CLASS_SEAT)
-               break;
-          }
+        device = efl_input_device_seat_get(device);
         if (!device)
           {
              ERR("Could not find the parent seat from device name '%s'. Using default seat instead", name);