[clutter-gtk/wip/mir] initialization: add support for Mir clutter backend
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gtk/wip/mir] initialization: add support for Mir clutter backend
- Date: Fri, 12 Dec 2014 02:51:15 +0000 (UTC)
commit d1a08d7fe4d48eea55038a5654590df4f197212b
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Thu Dec 11 19:14:47 2014 +0100
initialization: add support for Mir clutter backend
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]