summaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc10
1 files changed, 5 insertions, 5 deletions
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