X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fblackbox.cc;h=a6a0b9f88d33aa557dff4527d572be245b06eb72;hb=45c2589ef6e6576604543229dfa1582d471e6a94;hp=e5e498a3e7a6bea2320d7d4a91e9f5df08bf0007;hpb=373de009f7e98b0c6f3a78f31c1e5c120cd722ed;p=chaz%2Fopenbox diff --git a/src/blackbox.cc b/src/blackbox.cc index e5e498a3..a6a0b9f8 100644 --- a/src/blackbox.cc +++ b/src/blackbox.cc @@ -107,7 +107,7 @@ Blackbox::Blackbox(int argc, char **m_argv, char *rc) S_IRGRP | S_IWGRP | S_IXGRP | S_IROTH | S_IWOTH | S_IXOTH); - if (! rc) rc = "~/.openbox/rc"; + if (! rc) rc = "~/.openbox/rc3"; rc_file = expandTilde(rc); config.setFile(rc_file); @@ -158,7 +158,9 @@ Blackbox::Blackbox(int argc, char **m_argv, char *rc) reconfigure_wait = False; - timer = new OBTimer(this); + timer = new otk::OBTimer(Openbox::instance->timerManager(), + (otk::OBTimeoutHandler)timeout, + this); timer->setTimeout(0l); } @@ -1130,7 +1132,7 @@ void Blackbox::reconfigure(void) { reconfigure_wait = True; - if (! timer->isTiming()) timer->start(); + if (! timer->timing()) timer->start(); } @@ -1151,11 +1153,11 @@ void Blackbox::saveStyleFilename(const string& filename) { } -void Blackbox::timeout(void) { - if (reconfigure_wait) - real_reconfigure(); +void Blackbox::timeout(Blackbox *t) { + if (t->reconfigure_wait) + t->real_reconfigure(); - reconfigure_wait = False; + t->reconfigure_wait = False; }