+
+# maintain a list of clients, stacked in focus order
+ob_clients = []
+# maintaint he current focused window
+ob_focused = 0;
+
+def ob_new_win(data):
+ global ob_clients
+ if not len(ob_clients): ob_clients.append(data.client.window())
+ else: ob_clients.insert(1, data.client.window()) # insert in 2nd slot
+
+def ob_close_win(data):
+ global ob_clients
+ ob_clients.remove(data.client.window())