From kde-commits Mon Apr 11 11:43:20 2005 From: =?utf-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 11 Apr 2005 11:43:20 +0000 To: kde-commits Subject: kdebase/kwin Message-Id: <20050411114320.AD8E363E () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=111321982820466 CVS commit by lunakl: Update geometry also of NET::Desktop windows e.g. on xrandr resolution changes. BUG: 103586 M +11 -0 geometry.cpp 2.104 --- kdebase/kwin/geometry.cpp #2.103:2.104 @@ -183,4 +183,8 @@ void Workspace::updateClientArea( bool f ++it) (*it)->checkWorkspacePosition(); + for( ClientList::ConstIterator it = desktops.begin(); + it != desktops.end(); + ++it) + (*it)->checkWorkspacePosition(); } delete[] screens; @@ -859,4 +863,11 @@ int Client::computeWorkareaDiff( int lef void Client::checkWorkspacePosition() { + if( isDesktop()) + { + QRect area = workspace()->clientArea( FullArea, this ); + if( geometry() != area ) + setGeometry( area ); + return; + } if( maximizeMode() != MaximizeRestore ) // TODO update geom_restore?