From 4304971dfd7c1063bbb5b12f5a323a4184b3ae5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Thu, 24 Oct 2002 15:39:36 +0000 Subject: [PATCH] Fix #22189. CCMAIL: 22189-done@bugs.kde.org svn path=/trunk/kdebase/kwin/; revision=185452 --- client.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/client.cpp b/client.cpp index 1ef21e5ab5..1469835195 100644 --- a/client.cpp +++ b/client.cpp @@ -1298,10 +1298,12 @@ bool Client::configureRequest( XConfigureRequestEvent& e ) //QRect area = workspace()->clientArea(); if ( isMaximizable() && isMaximized() ) { //&& ( ns.width() < area.width() || ns.height() < area.height() ) ) { - if ( (e.value_mask & (CWX | CWY )) == 0 ) - geom_restore.moveTopLeft( geometry().topLeft() ); - geom_restore.setSize( ns ); - maximize( Client::MaximizeRestore ); + if( ns != size()) { // don't restore if some app sets its own size again + if ( (e.value_mask & (CWX | CWY )) == 0 ) + geom_restore.moveTopLeft( geometry().topLeft() ); + geom_restore.setSize( ns ); + maximize( Client::MaximizeRestore ); + } } else if ( !isMaximized() ) { if ( ns == size() ) return TRUE; // broken xemacs stuff (ediff)