[clutter-gtk/wip/wayland: 5/6] util: Add Wayland support to init
- From: Rob Bradford <rbradford src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter-gtk/wip/wayland: 5/6] util: Add Wayland support to init
- Date: Tue, 3 Sep 2013 12:54:31 +0000 (UTC)
commit c9b4f1969e038a5deb65522b68f9072d9aa29d67
Author: Bastien Nocera <hadess hadess net>
Date: Tue Mar 12 15:13:15 2013 +0100
util: Add Wayland support to init
Pretty useless, but gets the code running a little bit further.
https://bugzilla.gnome.org/show_bug.cgi?id=695737
clutter-gtk/gtk-clutter-util.c | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/clutter-gtk/gtk-clutter-util.c b/clutter-gtk/gtk-clutter-util.c
index d4a9fa5..0752d7e 100644
--- a/clutter-gtk/gtk-clutter-util.c
+++ b/clutter-gtk/gtk-clutter-util.c
@@ -31,6 +31,10 @@
#include <gdk/gdkwin32.h>
#endif
+#if defined(CLUTTER_WINDOWING_WAYLAND)
+#include <gdk/gdkwayland.h>
+#endif
+
/**
* SECTION:gtk-clutter-util
* @Title: Utility Functions
@@ -96,6 +100,15 @@ post_parse_hook (GOptionContext *context,
}
else
#endif
+#if defined(GDK_WINDOWING_WAYLAND) && defined(CLUTTER_WINDOWING_WAYLAND)
+ if (clutter_check_windowing_backend (CLUTTER_WINDOWING_WAYLAND) &&
+ GDK_IS_WAYLAND_DISPLAY (display))
+ {
+ /* let GTK+ be in charge of the event handling */
+ /* FIXME: disable event retrieval */
+ }
+ else
+#endif
g_error ("*** Unsupported backend.");
/* this is required since parsing clutter's option group did not
@@ -202,6 +215,14 @@ gtk_clutter_init (int *argc,
clutter_win32_disable_event_retrieval ();
#endif
+#if defined(GDK_WINDOWING_WAYLAND) && defined(CLUTTER_WINDOWING_WAYLAND)
+ if (clutter_check_windowing_backend (CLUTTER_WINDOWING_WAYLAND))
+ {
+ /* let GTK+ be in charge of the event handling */
+ /* FIXME: disable event retrieval */
+ }
+#endif
+
/* We disable clutter accessibility support in order to not
* interfere with gtk accessibility support.
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]