summaryrefslogtreecommitdiff
path: root/perf
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-08-27 12:30:54 +0200
committerBenjamin Otte <otte@redhat.com>2010-09-26 15:11:30 +0200
commitde2a4d1b1ac47a903b2f37f2d0c744b4ba198ce7 (patch)
tree8b0a5c1ae3ef0d4247396fe027aef6018e0d1d19 /perf
parent4a9c32dc36757d04d628f9193e95f09186ee3b65 (diff)
downloadgtk+-de2a4d1b1ac47a903b2f37f2d0c744b4ba198ce7.tar.gz
perf: Use a temp window instead of a normal one
This way, we don't need hacks to not set the background.
Diffstat (limited to 'perf')
-rw-r--r--perf/gtkwidgetprofiler.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/perf/gtkwidgetprofiler.c b/perf/gtkwidgetprofiler.c
index c5b2cddbd6..f8ab9f926a 100644
--- a/perf/gtkwidgetprofiler.c
+++ b/perf/gtkwidgetprofiler.c
@@ -408,13 +408,12 @@ profile_expose (GtkWidgetProfiler *profiler)
attr.width = allocation.width;
attr.height = allocation.width;
attr.wclass = GDK_INPUT_OUTPUT;
- attr.window_type = GDK_WINDOW_CHILD;
+ attr.window_type = GDK_WINDOW_TEMP;
attr_mask = GDK_WA_X | GDK_WA_Y;
- window = gdk_window_new (gtk_widget_get_window (priv->toplevel),
+ window = gdk_window_new (gdk_screen_get_root_window (gtk_widget_get_screen (priv->toplevel)),
&attr, attr_mask);
- gdk_window_set_back_pixmap (window, NULL, TRUE); /* avoid flicker */
gdk_window_show (window);
gdk_window_hide (window);