From: Dana Jansens Date: Sun, 2 Feb 2003 23:02:22 +0000 (+0000) Subject: add an exit callback X-Git-Tag: openbox-2_3_0~53 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=b9ac2d30cf65fc3147f23d023942b3e6f8a4f29c;p=dana%2Fopenbox.git add an exit callback --- 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