Fixed closebutton

This commit is contained in:
fluxgen 2002-01-08 21:40:04 +00:00
parent 522e38bd71
commit 11ae668af7

View file

@ -1437,10 +1437,10 @@ void FluxboxWindow::getMWMHints(void) {
}
if (client.mwm_hint->flags & MwmHintsFunctions)
if (client.mwm_hint->functions & MwmFuncAll)
if (client.mwm_hint->functions & MwmFuncAll) {
functions.resize = functions.move = functions.iconify =
functions.maximize = functions.close = true;
else {
} else {
functions.resize = functions.move = functions.iconify =
functions.maximize = functions.close = false;
@ -2689,6 +2689,15 @@ void FluxboxWindow::propertyNotifyEvent(Atom atom) {
if (atom == fluxbox->getWMProtocolsAtom()) {
getWMProtocols();
if (decorations.close && !findTitleButton(Fluxbox::Close)) {
createButton(Fluxbox::Close, FluxboxWindow::closePressed_cb,
FluxboxWindow::closeButton_cb, FluxboxWindow::closeDraw_cb);
if (decorations.titlebar)
positionButtons(true);
if (windowmenu)
windowmenu->reconfigure();
}
}
break;