From 89eff5115360fe09a5edf57faeee164a241e6066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 2 Jul 2004 11:41:25 +0000 Subject: [PATCH] I give up with #75436. svn path=/trunk/kdebase/kwin/; revision=325314 --- geometry.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/geometry.cpp b/geometry.cpp index 3278cd8098..e0adae4c2a 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -1540,8 +1540,16 @@ bool Client::isMaximizable() const if( !isMovable() || !isResizable() || isToolbar()) // SELI isToolbar() ? return false; QSize max = maxSize(); +#if 0 if( max.width() < 32767 || max.height() < 32767 ) // sizes are 16bit with X return false; +#else + // apparently there are enough apps which specify some arbitrary value + // for their maximum size just for the fun of it + QSize areasize = workspace()->clientArea( MaximizeArea, this ).size(); + if( max.width() < areasize.width() || max.height() < areasize.height()) + return false; +#endif return true; }