}
}
}
- 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