ecore-wayland: Add support for using timer based animators if in
authorChris Michael <cp.michael@samsung.com>
Mon, 5 Oct 2015 20:32:11 +0000 (16:32 -0400)
committerChris Michael <cp.michael@samsung.com>
Thu, 3 Dec 2015 17:02:40 +0000 (12:02 -0500)
server mode

Summary: For E internal windows, we cannot use custom animator sources
due to Other animators using a timer-based solution. For this case,
when running in "server mode" for internal windows we will default to
a timer based animator solution.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
src/lib/ecore_wayland/ecore_wl_window.c

index 982dfd5..d61d781 100644 (file)
@@ -226,7 +226,11 @@ ecore_wl_window_new(Ecore_Wl_Window *parent, int x, int y, int w, int h, int buf
    win->title = NULL;
    win->class_name = NULL;
 
+   if (_ecore_wl_server_mode)
+     win->animator = ecore_animator_add(_ecore_wl_window_cb_animate, win);
+
    eina_hash_add(_windows, _ecore_wl_window_id_str_get(win->id), win);
+
    return win;
 }