[clutter/clutter-1.20] backend: try gdk backend before x11/wayland/egl
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.20] backend: try gdk backend before x11/wayland/egl
- Date: Wed, 13 Aug 2014 07:15:19 +0000 (UTC)
commit 398a7ac71333208e31d67f3ce50514fab58ba1bb
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Sun Aug 10 20:19:30 2014 +0100
backend: try gdk backend before x11/wayland/egl
Quite a few people at Guadec complained of pinpoint being broken in
speaker+fullscreen mode, with slides being half displayed. It turns
out that the X11 backend of clutter was being used and this backend
assumes the size of the current monitor is the size of the X screen
(that's not the case with multiple monitors).
To work around the shortcomings of the X11 backend we should probably
position the GDK one before. GDK implements most of the logic the
ClutterStage needs and is probably more tested.
https://bugzilla.gnome.org/show_bug.cgi?id=734587
clutter/clutter-backend.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/clutter/clutter-backend.c b/clutter/clutter-backend.c
index d255eee..4b17956 100644
--- a/clutter/clutter-backend.c
+++ b/clutter/clutter-backend.c
@@ -491,6 +491,11 @@ _clutter_create_backend (void)
retval = g_object_new (CLUTTER_TYPE_BACKEND_WIN32, NULL);
else
#endif
+#ifdef CLUTTER_WINDOWING_GDK
+ if (backend == NULL || backend == I_(CLUTTER_WINDOWING_GDK))
+ retval = g_object_new (CLUTTER_TYPE_BACKEND_GDK, NULL);
+ else
+#endif
#ifdef CLUTTER_WINDOWING_X11
if (backend == NULL || backend == I_(CLUTTER_WINDOWING_X11))
retval = g_object_new (CLUTTER_TYPE_BACKEND_X11, NULL);
@@ -506,11 +511,6 @@ _clutter_create_backend (void)
retval = g_object_new (CLUTTER_TYPE_BACKEND_EGL_NATIVE, NULL);
else
#endif
-#ifdef CLUTTER_WINDOWING_GDK
- if (backend == NULL || backend == I_(CLUTTER_WINDOWING_GDK))
- retval = g_object_new (CLUTTER_TYPE_BACKEND_GDK, NULL);
- else
-#endif
if (backend == NULL)
g_error ("No default Clutter backend found.");
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]