From b645888b026c3e8198d73693dafe34b4e33f9c74 Mon Sep 17 00:00:00 2001 From: Alistair Buxton Date: Mon, 25 Nov 2013 22:31:12 +0000 Subject: [PATCH] Don't show the window until the background is ready. Instead of immediately showing the window, realize it instead. This is pretty much the same thing except that it won't be visible while the async background loading happens. Then show it after the background is drawn. --- src/xfce-desktop.c | 1 + src/xfdesktop-application.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xfce-desktop.c b/src/xfce-desktop.c index d93535c..27df359 100644 --- a/src/xfce-desktop.c +++ b/src/xfce-desktop.c @@ -517,6 +517,7 @@ backdrop_changed_cb(XfceBackdrop *backdrop, gpointer user_data) g_object_unref(G_OBJECT(pix)); cairo_destroy(cr); + gtk_widget_show(GTK_WIDGET(desktop)); } if(clip_region != NULL) diff --git a/src/xfdesktop-application.c b/src/xfdesktop-application.c index af98380..91d25e6 100644 --- a/src/xfdesktop-application.c +++ b/src/xfdesktop-application.c @@ -678,7 +678,7 @@ xfdesktop_application_start(XfdesktopApplication *app) windowlist_attach(XFCE_DESKTOP(app->desktops[i])); /* display the desktop and try to put it at the bottom */ - gtk_widget_show(app->desktops[i]); + gtk_widget_realize(app->desktops[i]); gdk_window_lower(gtk_widget_get_window(app->desktops[i])); xfce_desktop_set_session_logout_func(XFCE_DESKTOP(app->desktops[i]), -- 1.8.3.2