From fd200f07f5ed87d2ecbd815a86f4dcdc1e17f23b Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 20 Sep 2010 12:11:24 +0200 Subject: [PATCH] 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. --- gdk/gdkoffscreenwindow.c | 2 -- 1 file changed, 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); }