aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-03-19 00:16:44 (GMT)
committerfluxgen <fluxgen>2002-03-19 00:16:44 (GMT)
commit02466ab04056d9275e7351400be111a9c4580f26 (patch)
treeeb8c9fbe5edd7859c8a2d8dd000f1cd974952c18 /src/fluxbox.cc
parentf666e3cd77cddea837b3f8810540f061390749c1 (diff)
downloadfluxbox_pavel-02466ab04056d9275e7351400be111a9c4580f26.zip
fluxbox_pavel-02466ab04056d9275e7351400be111a9c4580f26.tar.bz2
Fixed timer pointer
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r--src/fluxbox.cc19
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
306m_rc_titlebar_right(m_resourcemanager, TitlebarList(&m_titlebar_right[0], &m_titlebar_right[3]), "session.titlebar.right", "Session.Titlebar.Right"), 306m_rc_titlebar_right(m_resourcemanager, TitlebarList(&m_titlebar_right[0], &m_titlebar_right[3]), "session.titlebar.right", "Session.Titlebar.Right"),
307m_rc_cache_life(m_resourcemanager, 5, "session.cacheLife", "Session.CacheLife"), 307m_rc_cache_life(m_resourcemanager, 5, "session.cacheLife", "Session.CacheLife"),
308m_rc_cache_max(m_resourcemanager, 200, "session.cacheMax", "Session.CacheMax"), 308m_rc_cache_max(m_resourcemanager, 200, "session.cacheMax", "Session.CacheMax"),
309focused_window(0), 309focused_window(0), masked_window(0),
310masked_window(0), 310timer(this),
311no_focus(false), 311no_focus(false),
312rc_file(rc), 312rc_file(rc),
313argv(m_argv), argc(m_argc), 313argv(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) {
2327void Fluxbox::reconfigure(void) { 2324void 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) {
2421void Fluxbox::rereadMenu(void) { 2418void 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