diff options
Diffstat (limited to 'clutter-gtk/gtk-clutter-util.c')
-rw-r--r-- | clutter-gtk/gtk-clutter-util.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/clutter-gtk/gtk-clutter-util.c b/clutter-gtk/gtk-clutter-util.c index f66f8a9..c8ce50f 100644 --- a/clutter-gtk/gtk-clutter-util.c +++ b/clutter-gtk/gtk-clutter-util.c @@ -39,6 +39,10 @@ #include <gdk/gdkwayland.h> #endif +#if defined(GDK_WINDOWING_MIR) +#include <gdk/gdkmir.h> +#endif + /** * SECTION:gtk-clutter-util * @Title: Utility Functions @@ -110,6 +114,17 @@ gtk_clutter_init_internal (void) } else #endif +#if defined(GDK_WINDOWING_MIR) && defined(CLUTTER_WINDOWING_MIR) + if (clutter_check_windowing_backend (CLUTTER_WINDOWING_MIR) && + GDK_IS_MIR_DISPLAY (display)) + { + /* let GTK+ be in charge of the event handling */ + clutter_mir_disable_event_retrieval (); + + clutter_mir_set_connection (gdk_mir_display_get_mir_connection (display)); + } + else +#endif g_error ("*** Unsupported backend."); /* We disable clutter accessibility support in order to not |