summaryrefslogtreecommitdiff
path: root/gdk/gdkoffscreenwindow.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-07-31 11:20:46 +0200
committerBenjamin Otte <otte@redhat.com>2010-08-10 21:02:30 +0200
commit13087315808a2bf88a647dcbf75446cd48c563a1 (patch)
tree28728e92b852f6a9b3f4e25f2647e21c1cc3f41d /gdk/gdkoffscreenwindow.c
parentc3a59fbfcc078f3991b49b6ca50d9bfaac7a588d (diff)
downloadgtk+-13087315808a2bf88a647dcbf75446cd48c563a1.tar.gz
gdk: Don't require allocating window background colors anymore
X!! allocates the colors itself now.
Diffstat (limited to 'gdk/gdkoffscreenwindow.c')
-rw-r--r--gdk/gdkoffscreenwindow.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gdk/gdkoffscreenwindow.c b/gdk/gdkoffscreenwindow.c
index 257abea4d4..c8fc4187ae 100644
--- a/gdk/gdkoffscreenwindow.c
+++ b/gdk/gdkoffscreenwindow.c
@@ -676,10 +676,8 @@ gdk_offscreen_window_set_background (GdkWindow *window,
const GdkColor *color)
{
GdkWindowObject *private = (GdkWindowObject *)window;
- GdkColormap *colormap = gdk_drawable_get_colormap (window);
private->bg_color = *color;
- gdk_colormap_query_color (colormap, private->bg_color.pixel, &private->bg_color);
if (private->bg_pixmap &&
private->bg_pixmap != GDK_PARENT_RELATIVE_BG &&