[gtk+] gdk: Don't (un)set the background when destroying a window.
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gdk: Don't (un)set the background when destroying a window.
- Date: Wed, 29 Sep 2010 10:25:05 +0000 (UTC)
commit 1408bd9a37f0444ba968f5198e5ad96f5f2ab5cb
Author: Benjamin Otte <otte redhat com>
Date: Wed Sep 29 12:07:12 2010 +0200
gdk: Don't (un)set the background when destroying a window.
This previously caused the x11 code to do a XSetWindowBackgroundPixmap
call on a window that was about to be destroyed. And that's not really
useful.
https://bugzilla.gnome.org/show_bug.cgi?id=630864
gdk/gdkwindow.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 098309c..1479798 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -1983,8 +1983,6 @@ _gdk_window_destroy_hierarchy (GdkWindow *window,
gdk_window_free_paint_stack (window);
- gdk_window_set_background_pattern (window, NULL);
-
if (private->background)
{
cairo_pattern_destroy (private->background);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]