dont let maximizing occur if the window cant move or resize

This commit is contained in:
Dana Jansens 2003-02-03 10:50:14 +00:00
parent 92bc846ce1
commit 02b9d474f1

View file

@ -300,6 +300,10 @@ void Client::setupDecorAndFunctions()
} }
} }
// can't maximize without moving/resizing
if (!((_functions & Func_Move) && (_functions & Func_Resize)))
_functions &= ~Func_Maximize;
// finally, user specified disabled decorations are applied to subtract // finally, user specified disabled decorations are applied to subtract
// decorations // decorations
if (_disabled_decorations & Decor_Titlebar) if (_disabled_decorations & Decor_Titlebar)