fix bug where destroying the wrong windows in BlackboxWindow::positionButtons.

make util/ directory use the new config.h too
This commit is contained in:
Dana Jansens 2002-05-28 09:38:40 +00:00
parent 62ea1c5937
commit 6284d4ef90
2 changed files with 6 additions and 6 deletions

View file

@ -684,12 +684,12 @@ void BlackboxWindow::positionButtons(bool redecorate_label) {
} }
} }
} }
if (! hasclose) if (! hasclose && frame.close_button)
destroyCloseButton();
if (! hasiconify)
destroyCloseButton();
if (! hasmaximize)
destroyCloseButton(); destroyCloseButton();
if (! hasiconify && frame.iconify_button)
destroyIconifyButton();
if (! hasmaximize && frame.maximize_button)
destroyMaximizeButton();
if (! haslabel) if (! haslabel)
parsed += 'L'; // require that the label be in the layout parsed += 'L'; // require that the label be in the layout

View file

@ -1,6 +1,6 @@
# util/Makefile.am for Blackbox - an X11 Window manager # util/Makefile.am for Blackbox - an X11 Window manager
CPPFLAGS= @CPPFLAGS@ @DEBUG@ @NLS@ @TIMEDCACHE@ @ORDEREDPSEUDO@ CPPFLAGS= @CPPFLAGS@ @DEBUG@
bin_SCRIPTS = bsetbg bin_SCRIPTS = bsetbg
bin_PROGRAMS = bsetroot bin_PROGRAMS = bsetroot