summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c')
-rw-r--r--src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
index 0331c2a56c..9c079d9868 100644
--- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
+++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
@@ -37,16 +37,23 @@ static void _ecore_evas_wl_selection_init(Ecore_Evas *ee);
37 37
38/* local functions */ 38/* local functions */
39static void 39static void
40_anim_cb_tick(Ecore_Wl2_Window *win EINA_UNUSED, uint32_t timestamp EINA_UNUSED, void *data) 40_anim_cb_tick(Ecore_Wl2_Window *win EINA_UNUSED, uint32_t timestamp, void *data)
41{ 41{
42 Ecore_Evas *ee = data; 42 Ecore_Evas *ee = data;
43 Ecore_Evas_Engine_Wl_Data *edata; 43 Ecore_Evas_Engine_Wl_Data *edata;
44 double t, rt;
45 static double pt = 0.0, prt = 0.0;
44 46
45 edata = ee->engine.data; 47 edata = ee->engine.data;
46 48
47 if (!edata->ticking) return; 49 if (!edata->ticking) return;
48 50 t = ((double)timestamp / 1000.0);
49 ecore_evas_animator_tick(ee, NULL, ecore_loop_time_get()); 51 ecore_loop_time_set(t);
52 rt = ecore_time_get();
53// printf("ECORE_EVAS: wl client anim tick %p | %p - %1.5f @ %1.5f delt=%1.5f | %1.5f\n", ee, edata, t, ecore_time_get(), t - pt, rt - prt);
54 ecore_evas_animator_tick(ee, NULL, t);
55 pt = t;
56 prt = rt;
50} 57}
51 58
52static void 59static void