[Xfce4-commits] <xfdesktop:master> Always redraw backdrop on display change

Eric Koegel noreply at xfce.org
Mon Feb 17 12:20:01 CET 2014


Updating branch refs/heads/master
         to 11990471655a1ea7277497c8c93b716b1a3a2749 (commit)
       from e0f355e0f031b9ab2cc19cb7a32fbc6a4722e8cd (commit)

commit 11990471655a1ea7277497c8c93b716b1a3a2749
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Mon Feb 17 14:14:39 2014 +0300

    Always redraw backdrop on display change
    
    When changing from a laptop display to an external monitor there
    are times where the wallpaper doesn't correcly update. This patch
    removes a couple checks that are preventing that update.

 src/xfce-desktop.c |   13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/src/xfce-desktop.c b/src/xfce-desktop.c
index b87bdf9..04887cc 100644
--- a/src/xfce-desktop.c
+++ b/src/xfce-desktop.c
@@ -598,7 +598,7 @@ workspace_changed_cb(WnckScreen *wnck_screen,
 {
     XfceDesktop *desktop = XFCE_DESKTOP(user_data);
     gint current_workspace, new_workspace, i;
-    XfceBackdrop *current_backdrop, *new_backdrop;
+    XfceBackdrop *new_backdrop;
 
     TRACE("entering");
 
@@ -619,16 +619,11 @@ workspace_changed_cb(WnckScreen *wnck_screen,
         current_workspace, new_workspace);
 
     for(i = 0; i < xfce_desktop_get_n_monitors(desktop); i++) {
-        /* We want to compare the current workspace backdrop with the new one
-         * and see if we can avoid changing them if they are the same image/style */
+        /* Sanity check */
         if(current_workspace < desktop->priv->nworkspaces && current_workspace >= 0) {
-            current_backdrop = xfce_workspace_get_backdrop(desktop->priv->workspaces[current_workspace], i);
+            /* update! */
             new_backdrop = xfce_workspace_get_backdrop(desktop->priv->workspaces[new_workspace], i);
-
-            if(!xfce_backdrop_compare_backdrops(current_backdrop, new_backdrop) || !desktop->priv->bg_pixmap) {
-                /* only update monitors that require it */
-                backdrop_changed_cb(new_backdrop, user_data);
-            }
+            backdrop_changed_cb(new_backdrop, user_data);
         } else {
             /* If current_workspace was removed or never existed, get the new
              * backdrop and apply it */


More information about the Xfce4-commits mailing list