+def toggle_all_desktops(data):
+ """Toggles between sending a client to all desktops and to the current
+ desktop."""
+ if not data.client: return
+ if not data.client.desktop() == 0xffffffff:
+ send_to_desktop(data, 0xffffffff)
+ else:
+ send_to_desktop(data, openbox.screen(data.screen).desktop())
+
+def send_to_all_desktops(data):
+ """Sends a client to all desktops"""
+ if not data.client: return
+ send_to_desktop(data, 0xffffffff)
+