From 6284d4ef9036764d4e6f708ca5f38aa7c1749865 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 28 May 2002 09:38:40 +0000 Subject: fix bug where destroying the wrong windows in BlackboxWindow::positionButtons. make util/ directory use the new config.h too --- src/Window.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/Window.cc b/src/Window.cc index a1be1f7e..a876e110 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -684,12 +684,12 @@ void BlackboxWindow::positionButtons(bool redecorate_label) { } } } - if (! hasclose) - destroyCloseButton(); - if (! hasiconify) - destroyCloseButton(); - if (! hasmaximize) + if (! hasclose && frame.close_button) destroyCloseButton(); + if (! hasiconify && frame.iconify_button) + destroyIconifyButton(); + if (! hasmaximize && frame.maximize_button) + destroyMaximizeButton(); if (! haslabel) parsed += 'L'; // require that the label be in the layout -- cgit v1.2.3