X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fopenbox.cc;h=230c749d620190f266eb01d28f3564f2cdfcec00;hb=7db3ffecc980821ada3e805e2471716896e2410a;hp=f7f2098b1bc1d608952f3a522e0470fbb6186538;hpb=66a26917a0631463df7f72c34cbeb39df466918a;p=chaz%2Fopenbox diff --git a/src/openbox.cc b/src/openbox.cc index f7f2098b..230c749d 100644 --- a/src/openbox.cc +++ b/src/openbox.cc @@ -133,6 +133,11 @@ Openbox::Openbox(int argc, char **argv) // load config values python_exec(SCRIPTDIR"/config.py"); // load openbox config values + // run all of the python scripts +// python_exec(SCRIPTDIR"/clientmotion.py"); // moving and resizing clients +// python_exec(SCRIPTDIR"/clicks.py"); // titlebar/root clicks and dblclicks + // run the user's script + python_exec(_scriptfilepath.c_str()); // initialize all the screens OBScreen *screen; @@ -148,12 +153,6 @@ Openbox::Openbox(int argc, char **argv) ::exit(1); } - // run all of the python scripts, including the user's - python_exec(SCRIPTDIR"/globals.py"); // create/set global vars - python_exec(SCRIPTDIR"/clientmotion.py"); // moving and resizing clients - python_exec(SCRIPTDIR"/clicks.py"); // titlebar/root clicks and dblclicks - python_exec(_scriptfilepath.c_str()); - ScreenList::iterator it, end = _screens.end(); for (it = _screens.begin(); it != end; ++it) { (*it)->manageExisting(); @@ -174,11 +173,10 @@ Openbox::~Openbox() { _state = State_Exiting; // time to kill everything - delete _bindings; - delete _actions; - std::for_each(_screens.begin(), _screens.end(), otk::PointerAssassin()); + delete _bindings; + delete _actions; delete _property; python_destroy();