+def _focusable(client, desktop):
+ if not (avoid_skip_taskbar and client.skipTaskbar()) and \
+ (client.desktop() == desktop or client.desktop() == 0xffffffff) and \
+ client.normal() and (client.canFocus() or client.focusNotify()):
+ return 1
+ return 0
+