discomfitor pushed a commit to branch master.

commit 17339af862ba341b82f47020a996339f3a02ae77
Author: Mike Blumenkrantz <[email protected]>
Date:   Mon Jun 10 13:35:19 2013 +0100

    only set icon change flag and remember change if window name/class is 
actually different
---
 src/bin/e_border.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/bin/e_border.c b/src/bin/e_border.c
index 0ddc4c4..957575b 100644
--- a/src/bin/e_border.c
+++ b/src/bin/e_border.c
@@ -7169,13 +7169,14 @@ _e_border_eval0(E_Border *bd)
 
         if (!((bd->client.icccm.name == pname) &&
               (bd->client.icccm.class == pclass)))
-          bd->changes.icon = 1;
+          {
+             bd->changes.icon = 1;
+             rem_change = 1;
+          }
 
-        if (pname) eina_stringshare_del(pname);
-        if (pclass) eina_stringshare_del(pclass);
+        eina_stringshare_del(pname);
+        eina_stringshare_del(pclass);
         bd->client.icccm.fetch.name_class = 0;
-        bd->changes.icon = 1;
-        rem_change = 1;
      }
    if (bd->changes.prop || bd->client.icccm.fetch.state)
      {

-- 

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j

Reply via email to