Wrap another call of collect_windows().

portnov [2008-10-01 05:40:11]
Wrap another call of collect_windows().
Filename
qwerty.py
diff --git a/qwerty.py b/qwerty.py
index a2e2401..d811296 100755
--- a/qwerty.py
+++ b/qwerty.py
@@ -675,7 +675,11 @@ class GUI(object):
         self.window.show_all()
         self.taskbar.hide()

-        self.collect_windows()
+        try:
+            self.collect_windows()
+        except:
+            self.clients_list = []
+            print 'Could not get list of open windows!'

     def calc_sizes(self):
         global LABEL_FONT_SIZE
@@ -934,6 +938,7 @@ class GUI(object):
         try:
             self.collect_windows()
         except:
+            self.clients_list = []
             print 'Could not get list of open windows!'

         id = (int(k)-1)%10
ViewGit