mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 05:31:07 +00:00
perf: Use a temp window instead of a normal one
This way, we don't need hacks to not set the background.
This commit is contained in:
parent
4a9c32dc36
commit
de2a4d1b1a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user