diff --git a/src/tests/clutter-test-utils.c b/src/tests/clutter-test-utils.c index dd5852576..f4ca5d815 100644 --- a/src/tests/clutter-test-utils.c +++ b/src/tests/clutter-test-utils.c @@ -8,6 +8,7 @@ #include "backends/meta-virtual-monitor.h" #include "compositor/meta-plugin-manager.h" #include "core/meta-context-private.h" +#include "tests/meta-test-utils.h" typedef struct { @@ -75,6 +76,12 @@ clutter_test_get_stage (void) return meta_backend_get_stage (backend); } +void +clutter_test_flush_input (void) +{ + meta_flush_input (test_environ->context); +} + typedef struct { gpointer test_func; gpointer test_data; diff --git a/src/tests/clutter-test-utils.h b/src/tests/clutter-test-utils.h index af65352c6..c389c2f1e 100644 --- a/src/tests/clutter-test-utils.h +++ b/src/tests/clutter-test-utils.h @@ -113,6 +113,9 @@ void clutter_test_add_data_full (const char *test_path, gpointer test_data, GDestroyNotify test_notify); +CLUTTER_EXPORT +void clutter_test_flush_input (void); + CLUTTER_EXPORT ClutterActor * clutter_test_get_stage (void);