projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d99c55
)
add an exit callback
author
Dana Jansens
<danakj@orodu.net>
Sun, 2 Feb 2003 23:02:22 +0000
(23:02 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 2 Feb 2003 23:02:22 +0000
(23:02 +0000)
scripts/callbacks.py
patch
|
blob
|
history
diff --git
a/scripts/callbacks.py
b/scripts/callbacks.py
index 07dca05efb1aacca07754d5f8eb6e8b8325cbeed..e0ffd5e80e5cd565bbed4ae5c4b92f5b0926ec03 100644
(file)
--- a/
scripts/callbacks.py
+++ b/
scripts/callbacks.py
@@
-114,9
+114,13
@@
def focus(data):
data.client.focus()
def restart(data, other = ""):
- """Restarts
o
penbox, optionally starting another window manager."""
+ """Restarts
O
penbox, 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