[Xfce4-commits] <xfdesktop:master> Don't show the window until the background is ready.

Eric Koegel noreply at xfce.org
Tue Nov 26 02:40:01 CET 2013


Updating branch refs/heads/master
         to e47515567cecc02650e18ac1826fccc94da80857 (commit)
       from fc514be368a460b0946097236f58279dc11117d6 (commit)

commit e47515567cecc02650e18ac1826fccc94da80857
Author: Alistair Buxton <a.j.buxton at gmail.com>
Date:   Mon Nov 25 22:31:12 2013 +0000

    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.
    
    Signed-off-by: Eric Koegel <eric.koegel at gmail.com>

 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]),


More information about the Xfce4-commits mailing list