[Xfce4-commits] [apps/xfdashboard] 03/04: Add class '.window-state-maximized' to actors of type XfdashboardLiveWindow when the associated window is maximized.

noreply at xfce.org noreply at xfce.org
Wed Feb 10 09:18:17 CET 2016


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

nomad pushed a commit to branch master
in repository apps/xfdashboard.

commit 2a0fb47a2dc017e218b3931a9b1c5f332cc26ba0
Author: Stephan Haller <nomad at froevel.de>
Date:   Wed Feb 10 09:11:28 2016 +0100

    Add class '.window-state-maximized' to actors of type XfdashboardLiveWindow when the associated window is maximized.
    
    That's just a new class added to the already present classes '.window-state-pinned', '.window-state-minimized' and '.window-state-urgent'.
---
 xfdashboard/live-window.c |   10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/xfdashboard/live-window.c b/xfdashboard/live-window.c
index 2155dc3..c2d1cd1 100644
--- a/xfdashboard/live-window.c
+++ b/xfdashboard/live-window.c
@@ -294,6 +294,16 @@ static void _xfdashboard_live_window_on_state_changed(XfdashboardLiveWindow *sel
 			xfdashboard_stylable_remove_class(XFDASHBOARD_STYLABLE(self), "window-state-minimized");
 		}
 
+	/* Add or remove class depending on 'maximized' window state */
+	if(xfdashboard_window_tracker_window_is_maximized(inWindow))
+	{
+		xfdashboard_stylable_add_class(XFDASHBOARD_STYLABLE(self), "window-state-maximized");
+	}
+		else
+		{
+			xfdashboard_stylable_remove_class(XFDASHBOARD_STYLABLE(self), "window-state-maximized");
+		}
+
 	/* Add or remove class depending on 'urgent' window state */
 	if(xfdashboard_window_tracker_window_is_urgent(inWindow))
 	{

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


More information about the Xfce4-commits mailing list