raise ValueError("_remove(x): x not in _clients list.")
def _focused(data):
- global _clients
+ global _clients, _skip
if _skip:
- global _skip
_skip -= 1
return
if data.client:
- print data.client.window()
# move it to the top
try:
_remove(data.client)
# pass around focus
desktop = ob.openbox.screen(data.screen).desktop()
for c in _clients:
- if _focusable(c, desktop) and c.focus():
+ if _focusable(c, desktop):
+ c.focus()
break
def _newwindow(data):