X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=scripts%2Fcallbacks.py;h=7f7be6635e9ca7c4d7ef171acaacc772c0890caf;hb=d64505cfe29a433d09fba8ee74372181c04cfad7;hp=0852a3aca8d5d68fdc6cbb54de65c2700ce1ba48;hpb=c2527df85a011041e3c78abcc4e6789c0a204542;p=chaz%2Fopenbox diff --git a/scripts/callbacks.py b/scripts/callbacks.py index 0852a3ac..7f7be663 100644 --- a/scripts/callbacks.py +++ b/scripts/callbacks.py @@ -113,14 +113,6 @@ def focus(data): return data.client.focus() -def restart(data, 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 @@ -264,4 +256,12 @@ def send_to_prev_desktop(data, no_wrap=0, follow=1): if follow: change_desktop(data, d) +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() + print "Loaded callbacks.py"