all repos — fluxbox @ c52f13c5f2150e314db0723ba02f447be672e296

custom fork of the fluxbox windowmanager

fixed pointer
fluxgen fluxgen
commit

c52f13c5f2150e314db0723ba02f447be672e296

parent

9291eb0911bcb029cb0d3b527f45ffbb95b5d402

2 files changed, 11 insertions(+), 12 deletions(-)

jump to
M src/Toolbar.ccsrc/Toolbar.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Toolbar.cc,v 1.12 2002/02/20 23:13:32 fluxgen Exp $ +// $Id: Toolbar.cc,v 1.13 2002/03/19 00:12:36 fluxgen Exp $ // stupid macros needed to access some functions in version 2 of the GNU C // library

@@ -71,20 +71,20 @@

Toolbar::Toolbar(BScreen *scrn): screen(scrn), image_ctrl(screen->getImageControl()), +clock_timer(this), // get the clock updating every minute iconbar(0) { - fluxbox = Fluxbox::instance(); - - // get the clock updating every minute - clock_timer = new BTimer(fluxbox, this); + fluxbox = Fluxbox::instance(); + + timeval now; gettimeofday(&now, 0); - clock_timer->setTimeout((60 - (now.tv_sec % 60)) * 1000); - clock_timer->start(); + clock_timer.setTimeout((60 - (now.tv_sec % 60)) * 1000); + clock_timer.start(); hide_handler.toolbar = this; - hide_timer = new BTimer(fluxbox, &hide_handler); + hide_timer = new BTimer(&hide_handler); hide_timer->setTimeout(fluxbox->getAutoRaiseDelay()); hide_timer->fireOnce(True);

@@ -199,7 +199,6 @@

XDestroyWindow(display, frame.window); delete hide_timer; - delete clock_timer; delete toolbarmenu; if (iconbar) delete iconbar;

@@ -1198,7 +1197,7 @@ checkClock(True);

timeval now; gettimeofday(&now, 0); - clock_timer->setTimeout((60 - (now.tv_sec % 60)) * 1000); + clock_timer.setTimeout((60 - (now.tv_sec % 60)) * 1000); }
M src/Toolbar.hhsrc/Toolbar.hh

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Toolbar.hh,v 1.7 2002/02/17 18:49:02 fluxgen Exp $ +// $Id: Toolbar.hh,v 1.8 2002/03/19 00:12:36 fluxgen Exp $ #ifndef TOOLBAR_HH #define TOOLBAR_HH

@@ -99,7 +99,7 @@

Fluxbox *fluxbox; BScreen *screen; BImageControl *image_ctrl; - BTimer *clock_timer, *hide_timer; + BTimer clock_timer, *hide_timer; Toolbarmenu *toolbarmenu; class IconBar *iconbar;