discomfitor pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=9e0764809f2fbaeacfde34eb27696f6b0035d22e
commit 9e0764809f2fbaeacfde34eb27696f6b0035d22e Author: Mike Blumenkrantz <zm...@osg.samsung.com> Date: Mon Jun 29 18:14:20 2015 -0400 add focusgrab test this test demonstrates one of the more annoying aspects of x11 focus --- src/tests/focusgrab.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/tests/focusgrab.c b/src/tests/focusgrab.c new file mode 100644 index 0000000..9645689 --- /dev/null +++ b/src/tests/focusgrab.c @@ -0,0 +1,22 @@ +#include <Ecore.h> +#include <Ecore_Evas.h> + +static Eina_Bool +_focus(Ecore_Evas *ee) +{ + ecore_evas_focus_set(ee, 1); + return 1; +} + +int +main(void) +{ + Ecore_Evas *ee; + + ecore_evas_init(); + ee = ecore_evas_new(NULL, 0, 0, 200, 200, NULL); + ecore_evas_show(ee); + ecore_timer_add(3.0, (Ecore_Task_Cb)_focus, ee); + ecore_main_loop_begin(); + return 0; +} --