From afb63436c569092875575d4a99c1dc7b7d46f16a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 14 Jul 2004 11:49:30 +0000 Subject: [PATCH] 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 --- geometry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geometry.cpp b/geometry.cpp index e0adae4c2a..0dadb74d48 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -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