From 61b59fc972fbda07fa039fc38bed337bf332ceef Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 7 Aug 2009 05:34:22 +0000 Subject: [PATCH] Fix gdm background drawing --- gdm-background.patch | 30 ++++++++++++++++++++++++++++++ gtk2.spec | 8 +++++++- 2 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 gdm-background.patch diff --git a/gdm-background.patch b/gdm-background.patch new file mode 100644 index 0000000..2a1f8b1 --- /dev/null +++ b/gdm-background.patch @@ -0,0 +1,30 @@ +diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c +index 7a000aa..ec36191 100644 +--- a/gdk/gdkwindow.c ++++ b/gdk/gdkwindow.c +@@ -5049,7 +5049,7 @@ gdk_window_invalidate_rect (GdkWindow *window, + if (GDK_WINDOW_DESTROYED (window)) + return; + +- if (private->input_only || !private->viewable) ++ if (private->input_only || !private->viewable || !GDK_WINDOW_IS_MAPPED (window)) + return; + + if (!rect) +@@ -5135,6 +5135,7 @@ gdk_window_invalidate_maybe_recurse (GdkWindow *window, + + if (private->input_only || + !private->viewable || ++ !GDK_WINDOW_IS_MAPPED (window) || + gdk_region_empty (region)) + return; + +@@ -7929,7 +7930,7 @@ _gdk_window_calculate_full_clip_region (GdkWindow *window, + if (base_y_offset) + *base_y_offset = 0; + +- if (!private->viewable || private->input_only) ++ if (!private->viewable || !GDK_WINDOW_IS_MAPPED (window) || private->input_only) + return gdk_region_new (); + + window_get_size_rectangle (window, &visible_rect); diff --git a/gtk2.spec b/gtk2.spec index 6330123..dd8b14b 100644 --- a/gtk2.spec +++ b/gtk2.spec @@ -17,7 +17,7 @@ Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X Name: gtk2 Version: %{base_version} -Release: 4%{?dist} +Release: 5%{?dist} License: LGPLv2+ Group: System Environment/Libraries Source: http://download.gnome.org/sources/gtk+/2.17/gtk+-%{version}.tar.bz2 @@ -30,6 +30,8 @@ Patch0: gtk+-2.13.5-lib64.patch # http://bugzilla.redhat.com/show_bug.cgi?id=478400 Patch1: default_printer.patch +Patch2: gdm-background.patch + BuildRequires: atk-devel >= %{atk_version} BuildRequires: pango-devel >= %{pango_version} BuildRequires: glib2-devel >= %{glib2_version} @@ -141,6 +143,7 @@ This package contains developer documentation for the GTK+ widget toolkit. %patch0 -p1 -b .lib64 %patch1 -p0 -b .default-printer +%patch2 -p1 -b .gdm-background # make sure that gtkmarshalers.{c, h} get regenerated during the build # - caused by print_authentication.patch @@ -385,6 +388,9 @@ fi %changelog +* Fri Aug 7 2009 Matthias Clasen - 2.17.6-5 +- Fix gdm background drawing + * Sun Aug 2 2009 Matthias Clasen - 2.17.6-4 - Save some space