>From 2745f35983bf5985a5b1fd0b5ebbfa5ab33896e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?"Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20(kix)"?= <[email protected]>
Date: Mon, 25 Jun 2012 21:53:23 +0200
Subject: [PATCH 07/11] net_state_from_client can be removed

The variable net_state_from_client don't change their value in the
code, therefore, we don't need check it in any "if".
---
 src/window.h |    1 -
 src/wmspec.c |    4 +---
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/window.h b/src/window.h
index e2d516a..ae1e704 100644
--- a/src/window.h
+++ b/src/window.h
@@ -290,7 +290,6 @@ typedef struct WWindow {
 
         unsigned int user_changed_width:1;
         unsigned int user_changed_height:1;
-        unsigned int net_state_from_client:1; /* state hint was set by client 
*/
         unsigned int net_skip_pager:1;
         unsigned int net_handle_icon:1;
         unsigned int net_show_desktop:1;
diff --git a/src/wmspec.c b/src/wmspec.c
index 9456841..ae870ea 100644
--- a/src/wmspec.c
+++ b/src/wmspec.c
@@ -795,9 +795,7 @@ static void updateWorkspaceHint(WWindow * wwin, Bool fake, 
Bool del)
 static void updateStateHint(WWindow * wwin, Bool changedWorkspace, Bool del)
 {                              /* changeable */
        if (del) {
-               if (!wwin->flags.net_state_from_client) {
-                       XDeleteProperty(dpy, wwin->client_win, net_wm_state);
-               }
+               XDeleteProperty(dpy, wwin->client_win, net_wm_state);
        } else {
                Atom state[15]; /* nr of defined state atoms */
                int i = 0;
-- 
1.7.10

-- 
||// //\\// Rodolfo "kix" Garcia
||\\// //\\ http://www.kix.es/
>From 2745f35983bf5985a5b1fd0b5ebbfa5ab33896e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?"Rodolfo=20Garc=C3=ADa=20Pe=C3=B1as=20(kix)"?= <[email protected]>
Date: Mon, 25 Jun 2012 21:53:23 +0200
Subject: [PATCH 07/11] net_state_from_client can be removed

The variable net_state_from_client don't change their value in the
code, therefore, we don't need check it in any "if".
---
 src/window.h |    1 -
 src/wmspec.c |    4 +---
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/window.h b/src/window.h
index e2d516a..ae1e704 100644
--- a/src/window.h
+++ b/src/window.h
@@ -290,7 +290,6 @@ typedef struct WWindow {
 
         unsigned int user_changed_width:1;
         unsigned int user_changed_height:1;
-        unsigned int net_state_from_client:1; /* state hint was set by client */
         unsigned int net_skip_pager:1;
         unsigned int net_handle_icon:1;
         unsigned int net_show_desktop:1;
diff --git a/src/wmspec.c b/src/wmspec.c
index 9456841..ae870ea 100644
--- a/src/wmspec.c
+++ b/src/wmspec.c
@@ -795,9 +795,7 @@ static void updateWorkspaceHint(WWindow * wwin, Bool fake, Bool del)
 static void updateStateHint(WWindow * wwin, Bool changedWorkspace, Bool del)
 {				/* changeable */
 	if (del) {
-		if (!wwin->flags.net_state_from_client) {
-			XDeleteProperty(dpy, wwin->client_win, net_wm_state);
-		}
+		XDeleteProperty(dpy, wwin->client_win, net_wm_state);
 	} else {
 		Atom state[15];	/* nr of defined state atoms */
 		int i = 0;
-- 
1.7.10

Reply via email to