X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FWindow.cc;h=a876e110352d5e3c38688cbf49fad1a15046cab4;hb=6284d4ef9036764d4e6f708ca5f38aa7c1749865;hp=a1be1f7eea5f7d0b96b540fbfd280f6649536a0e;hpb=341c4e04ffc5572dc02563df914dc65a0a57b9f3;p=chaz%2Fopenbox 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