]> Dogcows Code - chaz/openbox/commitdiff
move restart and exit to the top
authorDana Jansens <danakj@orodu.net>
Sun, 2 Feb 2003 23:51:30 +0000 (23:51 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 2 Feb 2003 23:51:30 +0000 (23:51 +0000)
scripts/callbacks.py

index 024a197e3bea156117aaef6e0c3b41d484cc572e..e001cc3b62c2bdb5b9e21d8a7f16eec905ec5fcb 100644 (file)
@@ -9,6 +9,14 @@ StateRemove = 0
 StateAdd = 1
 StateToggle = 2
 
+def restart(data=0, other = ""):
+    """Restarts Openbox, optionally starting another window manager."""
+    ob.openbox.restart(other)
+
+def exit(data=0):
+    """Exits Openbox."""
+    ob.openbox.shutdown()
+
 def state_above(data, add=StateAdd):
     """Toggles, adds or removes the 'above' state on a window.
        The second paramater should one of: StateRemove, StateAdd, or
@@ -113,14 +121,6 @@ def focus(data):
         return
     data.client.focus()
 
-def restart(data=0, other = ""):
-    """Restarts Openbox, optionally starting another window manager."""
-    ob.openbox.restart(other)
-
-def exit(data=0):
-    """Exits Openbox."""
-    ob.openbox.shutdown()
-
 def raise_win(data):
     """Raises the window on which the event occured"""
     if not data.client: return
This page took 0.022114 seconds and 4 git commands to generate.