updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gtk2-ubuntu / 010_make_bg_changes_queue_repaint.patch
blobaf47948dad010c92debf656710efca7d16e461a6
1 From 254b9a4c540e3dff1dcd17db2ceea6a9fa5df973 Mon Sep 17 00:00:00 2001
2 From: Benjamin Otte <otte@redhat.com>
3 Date: Thu, 09 Jun 2011 04:29:45 +0000
4 Subject: gdk: Make background changes queue a repaint
6 For client-side windows, we need to queue a repaint when the background
7 changes. For native windows, the windowing system does take care of it,
8 but client-side windows are our own, so we gotta do it manually.
10 https://bugzilla.gnome.org/show_bug.cgi?id=652102
11 ---
12 diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
13 index f058570..10d83ab 100644
14 --- a/gdk/gdkwindow.c
15 +++ b/gdk/gdkwindow.c
16 @@ -8004,11 +8004,15 @@ gdk_window_set_background (GdkWindow *window,
19 if (!GDK_WINDOW_DESTROYED (window) &&
20 - gdk_window_has_impl (private) &&
21 !private->input_only)
23 - impl_iface = GDK_WINDOW_IMPL_GET_IFACE (private->impl);
24 - impl_iface->set_background (window, &private->bg_color);
25 + if (gdk_window_has_impl (private))
26 + {
27 + impl_iface = GDK_WINDOW_IMPL_GET_IFACE (private->impl);
28 + impl_iface->set_background (window, &private->bg_color);
29 + }
30 + else
31 + gdk_window_invalidate_rect_full (window, NULL, TRUE, CLEAR_BG_ALL);
35 @@ -8077,11 +8081,15 @@ gdk_window_set_back_pixmap (GdkWindow *window,
36 private->bg_pixmap = GDK_NO_BG;
38 if (!GDK_WINDOW_DESTROYED (window) &&
39 - gdk_window_has_impl (private) &&
40 !private->input_only)
42 - impl_iface = GDK_WINDOW_IMPL_GET_IFACE (private->impl);
43 - impl_iface->set_back_pixmap (window, private->bg_pixmap);
44 + if (gdk_window_has_impl (private))
45 + {
46 + impl_iface = GDK_WINDOW_IMPL_GET_IFACE (private->impl);
47 + impl_iface->set_back_pixmap (window, private->bg_pixmap);
48 + }
49 + else
50 + gdk_window_invalidate_rect_full (window, NULL, TRUE, CLEAR_BG_ALL);