summaryrefslogtreecommitdiff
path: root/gdk/gdkoffscreenwindow.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-09-20 12:11:24 +0200
committerBenjamin Otte <otte@redhat.com>2010-09-26 15:11:43 +0200
commitfd200f07f5ed87d2ecbd815a86f4dcdc1e17f23b (patch)
treec9c79edabfb7a336d2f7e81407165ca757e64ac3 /gdk/gdkoffscreenwindow.c
parentaf32c9c9beec6dd004326b3d064befae66b27d44 (diff)
downloadgtk+-fd200f07f5ed87d2ecbd815a86f4dcdc1e17f23b.tar.gz
gdk: No need to clear offscreen window when showing
I don't think it's necessary to clear the backing surface when showing the window, as we're going to repaint it anyway. If it's needed, we can implement it again using internal APIs, as the public window_clear() APIs are going away.
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 c46b8f2442..09375d3f81 100644
--- a/gdk/gdkoffscreenwindow.c
+++ b/gdk/gdkoffscreenwindow.c
@@ -454,8 +454,6 @@ gdk_offscreen_window_show (GdkWindow *window,
GdkWindowObject *private = (GdkWindowObject *)window;
GdkRectangle area = { 0, 0, private->width, private->height };
- gdk_window_clear_area (window, 0, 0,
- private->width, private->height);
gdk_window_invalidate_rect (window, &area, FALSE);
}