summaryrefslogtreecommitdiff
path: root/scripts/callbacks.py
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-02 23:02:22 +0000
committerDana Jansens <danakj@orodu.net>2003-02-02 23:02:22 +0000
commitb9ac2d30cf65fc3147f23d023942b3e6f8a4f29c (patch)
treee34a287fd714d3765b41bd3fddba38e90c37cc71 /scripts/callbacks.py
parent8d99c55c6c2949860dfc39a31b5724f32fdd5b8b (diff)
add an exit callback
Diffstat (limited to 'scripts/callbacks.py')
-rw-r--r--scripts/callbacks.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/callbacks.py b/scripts/callbacks.py
index 07dca05e..e0ffd5e8 100644
--- a/scripts/callbacks.py
+++ b/scripts/callbacks.py
@@ -114,9 +114,13 @@ def focus(data):
data.client.focus()
def restart(data, other = ""):
- """Restarts openbox, optionally starting another window manager."""
+ """Restarts Openbox, optionally starting another window manager."""
ob.openbox.restart(other)
+def exit(data):
+ """Exits Openbox."""
+ ob.openbox.shutdown()
+
def raise_win(data):
"""Raises the window on which the event occured"""
if not data.client: return