Commits

Antonio Cuni committed 7033d6b

geometry for the smaller screen of the laptop

  • Participants
  • Parent commits b3ce4c7

Comments (0)

Files changed (1)

     def get_active(cls):
         out = getoutput("xprop -root _NET_ACTIVE_WINDOW")
         parts = out.split()
-        id = int(parts[-1], 16)
+        try:
+            id = int(parts[-1], 16)
+        except ValueError:
+            return None
         lst = cls.by_id(id)
         if not lst:
             return None