Even if a window is maximized, it doesn't necessarily mean it can be

always un-maximized.
CCMAIL: 84743-done@bugs.kde.org

svn path=/trunk/kdebase/kwin/; revision=329099
This commit is contained in:
Luboš Luňák 2004-07-14 11:49:30 +00:00
parent 49de9c7cb0
commit afb63436c5

View file

@ -1535,10 +1535,10 @@ bool Client::isResizable() const
*/
bool Client::isMaximizable() const
{
if ( maximizeMode() != MaximizeRestore )
return TRUE;
if( !isMovable() || !isResizable() || isToolbar()) // SELI isToolbar() ?
return false;
if ( maximizeMode() != MaximizeRestore )
return TRUE;
QSize max = maxSize();
#if 0
if( max.width() < 32767 || max.height() < 32767 ) // sizes are 16bit with X