tests: make elm_win visible during tests
authorMike Blumenkrantz <zmike@samsung.com>
Thu, 21 Mar 2019 17:08:56 +0000 (13:08 -0400)
committerYeongjong Lee <yj34.lee@samsung.com>
Tue, 2 Apr 2019 03:45:17 +0000 (12:45 +0900)
elm_win has some internal locking to avoid doing sizing and visibility
changes until pre-render to save some calculations. this makes triggering
ui events on objects impossible, as they will not be visible.

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D8438

src/tests/elementary/suite_helpers.c

index 873e467..9d870d2 100644 (file)
@@ -7,6 +7,9 @@
 #include "eo_internal.h"
 #include "../efl_check.h"
 #include "elm_widget.h"
+#include "ecore_private.h"
+#include "ecore_evas_private.h"
+
 
 static int main_pid = -1;
 static Eina_Bool did_shutdown;
@@ -132,6 +135,7 @@ _win_manual_render(void *data, const Efl_Event *event EINA_UNUSED)
 
    ecore_loop_time_set(t + LOOP_INCREMENT);
    ecore_animator_custom_tick();
+   ecore_evas_render_prepare(ecore_evas_ecore_evas_get(evas_object_evas_get(data)));
    evas_norender(evas_object_evas_get(data));
 }