[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kwin
From: Luboš Luňák <l.lunak () kde ! org>
Date: 2005-04-11 11:43:20
Message-ID: 20050411114320.AD8E363E () office ! kde ! org
[Download RAW message or body]
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?
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic