[Xfce4-commits] [apps/xfdashboard] 01/01: Prevent background image layer to be deleted when workspace is changed at XfdashboardLiveWorkspace and show background image layer when desktop window can be found when changing background image type to desktop.

noreply at xfce.org noreply at xfce.org
Tue Oct 24 17:50:35 CEST 2017


This is an automated email from the git hooks/post-receive script.

n   o   m   a   d       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfdashboard.

commit d89727410c8de8456c2723e9bb730562fa033e65
Author: Stephan Haller <nomad at froevel.de>
Date:   Tue Oct 24 17:49:31 2017 +0200

    Prevent background image layer to be deleted when workspace is changed at XfdashboardLiveWorkspace and show background image layer when desktop window can be found when changing background image type to desktop.
    
    This commit should fix issue GH #148
---
 libxfdashboard/live-workspace.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libxfdashboard/live-workspace.c b/libxfdashboard/live-workspace.c
index 646361b..cc8169f 100644
--- a/libxfdashboard/live-workspace.c
+++ b/libxfdashboard/live-workspace.c
@@ -1144,6 +1144,9 @@ void xfdashboard_live_workspace_set_workspace(XfdashboardLiveWorkspace *self, Xf
 		window=xfdashboard_live_window_simple_get_window(XFDASHBOARD_LIVE_WINDOW_SIMPLE(child));
 		if(!window || !XFDASHBOARD_IS_WINDOW_TRACKER_WINDOW(window)) continue;
 
+		/* Do not destroy background image layer */
+		if(child==priv->backgroundImageLayer) continue;
+
 		/* Destroy window actor */
 		clutter_actor_destroy(child);
 	}
@@ -1250,6 +1253,7 @@ void xfdashboard_live_workspace_set_background_image_type(XfdashboardLiveWorkspa
 						if(backgroundWindow)
 						{
 							xfdashboard_live_window_simple_set_window(XFDASHBOARD_LIVE_WINDOW_SIMPLE(priv->backgroundImageLayer), backgroundWindow);
+							clutter_actor_show(priv->backgroundImageLayer);
 							XFDASHBOARD_DEBUG(self, ACTOR,
 												"Desktop window was found and set up as background image for workspace '%s'",
 												xfdashboard_window_tracker_workspace_get_name(priv->workspace));

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list