summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_events.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/elementary/test_events.c')
-rw-r--r--src/bin/elementary/test_events.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/bin/elementary/test_events.c b/src/bin/elementary/test_events.c
index 013bd91..8a10403 100644
--- a/src/bin/elementary/test_events.c
+++ b/src/bin/elementary/test_events.c
@@ -111,18 +111,17 @@ _clicked_button2(void *data, const Efl_Event *ev EINA_UNUSED)
111{ 111{
112 testdata *td = data; 112 testdata *td = data;
113 Eo *bt = td->button; 113 Eo *bt = td->button;
114 int x, y, w, h; 114 Eina_Rect r;
115 115
116 if (!td->evkeyup) 116 if (!td->evkeyup)
117 { 117 {
118 efl_gfx_position_get(bt, &x, &y); 118 r = efl_gfx_geometry_get(bt);
119 efl_gfx_size_get(bt, &w, &h); 119
120 120 r.x = r.x + r.w / 2;
121 x = x + w / 2; 121 r.y = r.y + r.h / 2;
122 y = y + h / 2; 122 efl_input_pointer_position_set(td->evmove, r.x, r.y);
123 efl_input_pointer_position_set(td->evmove, x, y); 123 efl_input_pointer_position_set(td->evdown, r.x, r.y);
124 efl_input_pointer_position_set(td->evdown, x, y); 124 efl_input_pointer_position_set(td->evup, r.x, r.y);
125 efl_input_pointer_position_set(td->evup, x, y);
126 125
127 efl_event_callback_call(td->win, EFL_EVENT_POINTER_MOVE, td->evmove); 126 efl_event_callback_call(td->win, EFL_EVENT_POINTER_MOVE, td->evmove);
128 efl_event_callback_call(td->win, EFL_EVENT_POINTER_DOWN, td->evdown); 127 efl_event_callback_call(td->win, EFL_EVENT_POINTER_DOWN, td->evdown);