[clutter] clutter: Prefer the X11 backend to the Wayland one
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] clutter: Prefer the X11 backend to the Wayland one
- Date: Thu, 14 Mar 2013 14:30:28 +0000 (UTC)
commit bbb54f1aedf33d6fb1155ff151f840c0c528fe37
Author: Bastien Nocera <hadess hadess net>
Date: Thu Mar 14 12:31:52 2013 +0100
clutter: Prefer the X11 backend to the Wayland one
If clutter is built with both X11 and Wayland support, prefer the
(more complete for now) X11 backend. This matches GTK+'s current
ordering.
This allows distributions to ship a clutter version with both backends
built, and using an envvar to switch to the wayland backend and test
applications.
In the future, applications would be able to choose which backend
they prefer and in which order.
https://bugzilla.gnome.org/show_bug.cgi?id=695838
clutter/clutter-main.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/clutter/clutter-main.c b/clutter/clutter-main.c
index f132b1d..d0d6185 100644
--- a/clutter/clutter-main.c
+++ b/clutter/clutter-main.c
@@ -1409,6 +1409,11 @@ clutter_create_backend (void)
retval = g_object_new (CLUTTER_TYPE_BACKEND_WIN32, NULL);
else
#endif
+#ifdef CLUTTER_WINDOWING_X11
+ if (backend == NULL || backend == I_(CLUTTER_WINDOWING_X11))
+ retval = g_object_new (CLUTTER_TYPE_BACKEND_X11, NULL);
+ else
+#endif
#ifdef CLUTTER_WINDOWING_WAYLAND
if (backend == NULL || backend == I_(CLUTTER_WINDOWING_WAYLAND))
retval = g_object_new (CLUTTER_TYPE_BACKEND_WAYLAND, NULL);
@@ -1419,11 +1424,6 @@ clutter_create_backend (void)
retval = g_object_new (CLUTTER_TYPE_BACKEND_EGL_NATIVE, NULL);
else
#endif
-#ifdef CLUTTER_WINDOWING_X11
- if (backend == NULL || backend == I_(CLUTTER_WINDOWING_X11))
- retval = g_object_new (CLUTTER_TYPE_BACKEND_X11, NULL);
- else
-#endif
#ifdef CLUTTER_WINDOWING_GDK
if (backend == NULL || backend == I_(CLUTTER_WINDOWING_GDK))
retval = g_object_new (CLUTTER_TYPE_BACKEND_GDK, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]