From cfffa9a78594c6ed7f66676b0f94fe7d55f2ecd3 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Tue, 15 May 2007 13:57:06 +0000 Subject: [PATCH] - Don't show iris animation when using compiz (bug 237842) --- ...session-2.18.0-dont-use-iris-with-cm.patch | 52 +++++++++++++++++++ gnome-session.spec | 8 ++- 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 gnome-session-2.18.0-dont-use-iris-with-cm.patch diff --git a/gnome-session-2.18.0-dont-use-iris-with-cm.patch b/gnome-session-2.18.0-dont-use-iris-with-cm.patch new file mode 100644 index 0000000..e065bf0 --- /dev/null +++ b/gnome-session-2.18.0-dont-use-iris-with-cm.patch @@ -0,0 +1,52 @@ +--- gnome-session-2.18.0/gnome-session/logout.c.dont-use-iris-with-cm 2007-03-12 14:48:31.000000000 -0400 ++++ gnome-session-2.18.0/gnome-session/logout.c 2007-05-15 09:54:32.000000000 -0400 +@@ -333,7 +333,7 @@ + gboolean halt_active = FALSE; + gboolean reboot_active = FALSE; + GdmLogoutAction logout_action = GDM_LOGOUT_ACTION_NONE; +- gboolean a11y_enabled; ++ gboolean iris_effect_enabled; + GError *error = NULL; + GdkScreen *screen; + int monitor; +@@ -356,10 +356,10 @@ + + gtk_widget_show (invisible); + +- a11y_enabled = GTK_IS_ACCESSIBLE (gtk_widget_get_accessible (invisible)); ++ iris_effect_enabled = !GTK_IS_ACCESSIBLE (gtk_widget_get_accessible (invisible)) && !gtk_widget_is_composited (invisible); + +- /* Only create a managed window if a11y is enabled */ +- if (!a11y_enabled) ++ /* Only create a managed window if a11y/compositing manager is enabled */ ++ if (!iris_effect_enabled) + { + while (1) + { +@@ -485,7 +485,7 @@ + /* Grabbing the Xserver when accessibility is enabled will cause + * a hang. See #93103 for details. + */ +- if (!a11y_enabled) ++ if (iris_effect_enabled) + { + XGrabServer (GDK_DISPLAY ()); + gsm_foreach_screen (fadeout_screen); +@@ -493,7 +493,7 @@ + + gtk_widget_show_all (box); + +- if (!a11y_enabled) ++ if (!iris_effect_enabled) + { + /* Move the grabs to our message box */ + gdk_pointer_grab (box->window, TRUE, 0, +@@ -526,7 +526,7 @@ + gtk_widget_destroy (box); + gtk_widget_destroy (invisible); + +- if (!a11y_enabled) ++ if (iris_effect_enabled) + { + hide_fadeout_windows (); + XUngrabServer (GDK_DISPLAY ()); diff --git a/gnome-session.spec b/gnome-session.spec index 0bdbb1e..3f26f7e 100644 --- a/gnome-session.spec +++ b/gnome-session.spec @@ -12,7 +12,7 @@ Summary: GNOME session manager Name: gnome-session Version: 2.18.0 -Release: 6%{?dist} +Release: 7%{?dist} URL: http://www.gnome.org Source0: http://ftp.gnome.org/pub/gnome/sources/gnome-session/2.18/%{name}-%{version}.tar.bz2 Source1: redhat-default-session @@ -64,6 +64,8 @@ Patch20: gnome-session-2.17.91-atspi-timeout.patch # http://bugzilla.gnome.org/show_bug.cgi?id=411506 Patch21: gnome-session-2.17.91-use-gdm-at-hints-3.patch +Patch22: gnome-session-2.18.0-dont-use-iris-with-cm.patch + BuildRequires: esound-devel >= %{esound_version} BuildRequires: /usr/bin/esd BuildRequires: libgnomeui-devel >= %{libgnomeui_version} @@ -111,6 +113,7 @@ GNOME components and handles logout and saving the session. %patch13 -p1 -b .window-manager %patch20 -p1 -b .timeout %patch21 -p0 -b .use-gdm-hints +%patch22 -p1 -b .dont-use-iris-with-cm %build @@ -202,6 +205,9 @@ fi %{_datadir}/icons/hicolor/scalable/apps/session-properties.svg %changelog +* Tue May 15 2007 Ray Strode - 2.18.0-7 +- Don't show iris animation when using compiz (bug 237842) + * Sun May 6 2007 Matthias Clasen - 2.18.0-6 - Don't own /usr/share/applications