From 30b899fc025e7fee283be7170bd642b509f5c7b5 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 12 May 2002 20:46:02 +0000 Subject: converted all of the openbox class LinkedLists to STL objects --- src/Toolbar.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Toolbar.cc') diff --git a/src/Toolbar.cc b/src/Toolbar.cc index 7e28fe62..5d5e924a 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc @@ -724,11 +724,11 @@ void Toolbar::checkClock(Bool redraw, Bool date) { void Toolbar::redrawWindowLabel(Bool redraw) { - if (screen.getOpenbox().focusedWindow()) { + OpenboxWindow *foc = screen.getOpenbox().focusedWindow(); + if (foc != (OpenboxWindow *) 0) { if (redraw) XClearWindow(display, frame.window_label); - OpenboxWindow *foc = screen.getOpenbox().focusedWindow(); if (foc->getScreen() != &screen) return; int dx = (frame.bevel_w * 2), dlen = strlen(*foc->getTitle()); -- cgit v1.2.3