aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_device.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-06-09 20:16:07 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-06-09 19:14:59 -0400
commit839e45e49b4a574d904ee2022692956a304fd7a7 (patch)
tree8eb18968d7011d4eaca17d8ea9fb48a2093ee0e8 /src/lib/evas/canvas/evas_device.c
parentecore-ipc: don't return dead clients in ecore_ipc_server_clients_get (diff)
downloadefl-839e45e49b4a574d904ee2022692956a304fd7a7.tar.gz
evas: handle focus setting with async input init
@fix
Diffstat (limited to 'src/lib/evas/canvas/evas_device.c')
-rw-r--r--src/lib/evas/canvas/evas_device.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/evas_device.c b/src/lib/evas/canvas/evas_device.c
index 92e21f84e0..e474540239 100644
--- a/src/lib/evas/canvas/evas_device.c
+++ b/src/lib/evas/canvas/evas_device.c
@@ -211,6 +211,12 @@ evas_device_add_full(Evas *eo_e, const char *name, const char *desc,
efl_event_callback_call(eo_e, EFL_CANVAS_EVENT_DEVICE_ADDED, dev);
// Keeping this event to do not break things...
evas_event_callback_call(eo_e, EVAS_CALLBACK_DEVICE_CHANGED, dev);
+ if (e->pending_default_focus_obj && (e->default_seat == dev))
+ {
+ Eo *eo_obj = e->pending_default_focus_obj;
+ e->pending_default_focus_obj = NULL;
+ evas_object_focus_set(eo_obj, 1);
+ }
return dev;
}