diff options
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r-- | src/fluxbox.cc | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 612f08e..2ff4b03 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: fluxbox.cc,v 1.40 2002/03/18 20:26:32 fluxgen Exp $ | 25 | // $Id: fluxbox.cc,v 1.41 2002/03/19 00:16:44 fluxgen Exp $ |
26 | 26 | ||
27 | //Use some GNU extensions | 27 | //Use some GNU extensions |
28 | #ifndef _GNU_SOURCE | 28 | #ifndef _GNU_SOURCE |
@@ -306,8 +306,8 @@ m_rc_titlebar_left(m_resourcemanager, TitlebarList(&m_titlebar_left[0], &m_title | |||
306 | m_rc_titlebar_right(m_resourcemanager, TitlebarList(&m_titlebar_right[0], &m_titlebar_right[3]), "session.titlebar.right", "Session.Titlebar.Right"), | 306 | m_rc_titlebar_right(m_resourcemanager, TitlebarList(&m_titlebar_right[0], &m_titlebar_right[3]), "session.titlebar.right", "Session.Titlebar.Right"), |
307 | m_rc_cache_life(m_resourcemanager, 5, "session.cacheLife", "Session.CacheLife"), | 307 | m_rc_cache_life(m_resourcemanager, 5, "session.cacheLife", "Session.CacheLife"), |
308 | m_rc_cache_max(m_resourcemanager, 200, "session.cacheMax", "Session.CacheMax"), | 308 | m_rc_cache_max(m_resourcemanager, 200, "session.cacheMax", "Session.CacheMax"), |
309 | focused_window(0), | 309 | focused_window(0), masked_window(0), |
310 | masked_window(0), | 310 | timer(this), |
311 | no_focus(false), | 311 | no_focus(false), |
312 | rc_file(rc), | 312 | rc_file(rc), |
313 | argv(m_argv), argc(m_argc), | 313 | argv(m_argv), argc(m_argc), |
@@ -394,10 +394,9 @@ key(0) | |||
394 | XSync(getXDisplay(), False); | 394 | XSync(getXDisplay(), False); |
395 | 395 | ||
396 | reconfigure_wait = reread_menu_wait = false; | 396 | reconfigure_wait = reread_menu_wait = false; |
397 | 397 | ||
398 | timer = new BTimer(this, this); | 398 | timer.setTimeout(0); |
399 | timer->setTimeout(0); | 399 | timer.fireOnce(True); |
400 | timer->fireOnce(True); | ||
401 | 400 | ||
402 | //create keybindings handler and load keys file | 401 | //create keybindings handler and load keys file |
403 | char *keyfilename = StringUtil::expandFilename((*m_rc_keyfile).c_str()); | 402 | char *keyfilename = StringUtil::expandFilename((*m_rc_keyfile).c_str()); |
@@ -425,8 +424,6 @@ Fluxbox::~Fluxbox(void) { | |||
425 | delete key; | 424 | delete key; |
426 | key = 0; | 425 | key = 0; |
427 | 426 | ||
428 | delete timer; | ||
429 | |||
430 | delete screenList; | 427 | delete screenList; |
431 | delete menuTimestamps; | 428 | delete menuTimestamps; |
432 | 429 | ||
@@ -2327,7 +2324,7 @@ void Fluxbox::reload_rc(void) { | |||
2327 | void Fluxbox::reconfigure(void) { | 2324 | void Fluxbox::reconfigure(void) { |
2328 | reconfigure_wait = true; | 2325 | reconfigure_wait = true; |
2329 | 2326 | ||
2330 | if (! timer->isTiming()) timer->start(); | 2327 | if (! timer.isTiming()) timer.start(); |
2331 | } | 2328 | } |
2332 | 2329 | ||
2333 | 2330 | ||
@@ -2421,7 +2418,7 @@ void Fluxbox::checkMenu(void) { | |||
2421 | void Fluxbox::rereadMenu(void) { | 2418 | void Fluxbox::rereadMenu(void) { |
2422 | reread_menu_wait = True; | 2419 | reread_menu_wait = True; |
2423 | 2420 | ||
2424 | if (! timer->isTiming()) timer->start(); | 2421 | if (! timer.isTiming()) timer.start(); |
2425 | } | 2422 | } |
2426 | 2423 | ||
2427 | 2424 | ||