Revert "Prefer the GDK windowing backend for Clutter"

Backport an upstream patch that reverts the switch to the clutter GDK
windowing backend.

https://bugzilla.redhat.com/show_bug.cgi?id=1134921
https://bugzilla.redhat.com/show_bug.cgi?id=1139052
This commit is contained in:
Kalev Lember 2014-09-07 22:38:03 +02:00
parent e516b585d8
commit 9b449b36ab
2 changed files with 57 additions and 1 deletions

View File

@ -0,0 +1,50 @@
From a2a62570dd038a459326e3d56cb593af97e2f6f3 Mon Sep 17 00:00:00 2001
From: Emmanuele Bassi <ebassi@gnome.org>
Date: Thu, 28 Aug 2014 15:44:44 +0100
Subject: [PATCH] Revert "Prefer the GDK windowing backend for Clutter"
This reverts commit 0fc73a07770223964dbf41a20a4b0a8c3ef9a29c.
I could have gotten away with this, if it wasn't for you meddling kids
and your Wayland.
---
clutter-gtk/gtk-clutter-util.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/clutter-gtk/gtk-clutter-util.c b/clutter-gtk/gtk-clutter-util.c
index 53ec095..f66f8a9 100644
--- a/clutter-gtk/gtk-clutter-util.c
+++ b/clutter-gtk/gtk-clutter-util.c
@@ -66,9 +66,6 @@ gtk_clutter_init_internal (void)
display = gdk_display_get_default ();
#if defined(CLUTTER_WINDOWING_GDK)
- /* we want the GDK backend by default */
- clutter_set_windowing_backend (CLUTTER_WINDOWING_GDK);
-
if (clutter_check_windowing_backend (CLUTTER_WINDOWING_GDK))
{
clutter_gdk_set_display (gdk_display_get_default ());
@@ -82,7 +79,7 @@ gtk_clutter_init_internal (void)
if (clutter_check_windowing_backend (CLUTTER_WINDOWING_X11) &&
GDK_IS_X11_DISPLAY (display))
{
- /* enable ARGB visuals by default for Clutter; this is a no-op */
+ /* enable ARGB visuals by default for Clutter */
clutter_x11_set_use_argb_visual (TRUE);
/* share the X11 Display with GTK+ */
@@ -113,9 +110,7 @@ gtk_clutter_init_internal (void)
}
else
#endif
- {
- g_error ("*** Unsupported backend.");
- }
+ g_error ("*** Unsupported backend.");
/* We disable clutter accessibility support in order to not
* interfere with gtk accessibility support.
--
2.1.0

View File

@ -2,7 +2,7 @@
Name: clutter-gtk
Version: 1.5.4
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A basic GTK clutter widget
Group: Development/Languages
@ -10,6 +10,8 @@ License: LGPLv2+
URL: http://www.clutter-project.org
Source0: http://download.gnome.org/sources/clutter-gtk/1.5/clutter-gtk-%{version}.tar.xz
Patch0: 0001-Revert-Prefer-the-GDK-windowing-backend-for-Clutter.patch
BuildRequires: gtk3-devel >= 3.0.0
BuildRequires: clutter-devel >= 1.9
BuildRequires: gobject-introspection-devel
@ -31,6 +33,7 @@ clutter-gtk.
%prep
%setup -q
%patch0 -p1
%build
@ -66,6 +69,9 @@ make check %{?_smp_mflags} V=1
%{_datadir}/gtk-doc/html/clutter-gtk-1.0
%changelog
* Sun Sep 07 2014 Kalev Lember <kalevlember@gmail.com> - 1.5.4-2
- Revert "Prefer the GDK windowing backend for Clutter" (#1134921, #1139052)
* Thu Aug 21 2014 Kalev Lember <kalevlember@gmail.com> - 1.5.4-1
- Update to 1.5.4
- Drop duplicate deps that rpmbuild autogenerates