discomfitor pushed a commit to branch master.

commit 2746600db257b85d96a1c0527415efd0f671747c
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Jul 26 10:04:01 2013 +0100

    make e_hints setup slightly more clue-ful
---
 src/bin/e_hints.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/bin/e_hints.c b/src/bin/e_hints.c
index cf85e94..40ba968 100644
--- a/src/bin/e_hints.c
+++ b/src/bin/e_hints.c
@@ -125,15 +125,13 @@ e_hints_init(void)
              nwins = ecore_x_window_prop_window_get(roots[i],
                                                     
ECORE_X_ATOM_NET_SUPPORTING_WM_CHECK,
                                                     &win, 1);
+             twin = win;
              if (nwins > 0)
                {
                   for (;; )
                     {
-                       nwins = ecore_x_window_prop_window_get(win,
-                                                              
ECORE_X_ATOM_NET_SUPPORTING_WM_CHECK,
-                                                              &twin, 1);
-                       if (nwins < 1) break;
                        if (twin != win) break;
+                       if (ecore_x_error_code_get()) break; //some dead window 
has the atom
                        if (ecore_x_netwm_name_get(win, &name))
                          {
                             if (name)
@@ -153,6 +151,10 @@ e_hints_init(void)
                                                    "on this screen. Aborting 
startup.\n"));
                             exit(1);
                          }
+                       nwins = ecore_x_window_prop_window_get(roots[i],
+                                                              
ECORE_X_ATOM_NET_SUPPORTING_WM_CHECK,
+                                                              &twin, 1);
+                       if (nwins < 1) break;
                     }
                }
 

-- 

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk

Reply via email to