diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-02 23:51:30 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-02 23:51:30 +0000 |
| commit | 1814947e47dcf0ea5734c076d5eabe2f5a2e7f11 (patch) | |
| tree | 873d198cd497aec41a2dc5cf8d720dfa439d3021 /scripts | |
| parent | 95a11f35534a866514f9b8e9f5e929452c5df23a (diff) | |
move restart and exit to the top
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/callbacks.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/callbacks.py b/scripts/callbacks.py index 024a197e..e001cc3b 100644 --- a/scripts/callbacks.py +++ b/scripts/callbacks.py @@ -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 |
