- area = QApplication::desktop()->geometry();

+    area = QRect( 0, 0, 0, 0 ); // bogus value so that updateClientArea does the right thing
This fixes the icons being put on the topleft corner on startup.
updateClientArea wasn't setting the values in NETWM because it didn't detect
a change (until kicker started).

svn path=/trunk/kdebase/kwin/; revision=82160
This commit is contained in:
David Faure 2001-02-10 00:27:26 +00:00
parent f0efb406a4
commit f14bbd47a4

View file

@ -40,7 +40,7 @@ const int XIconicState = IconicState;
#undef IconicState
#include <kwin.h>
#include <kapp.h>
#include <kdebug.h>
extern int kwin_screen_number;
@ -223,7 +223,7 @@ Workspace::Workspace( bool restore )
installed_colormap = default_colormap;
session.setAutoDelete( TRUE );
area = QApplication::desktop()->geometry();
area = QRect( 0, 0, 0, 0 ); // bogus value so that updateClientArea does the right thing
if ( restore )
loadSessionInfo();
@ -3071,7 +3071,9 @@ void Workspace::updateClientArea()
r.size.width = area.width();
r.size.height = area.height();
for( int i = 1; i <= numberOfDesktops(); i++)
{
rootInfo->setWorkArea( i, r );
}
for ( ClientList::ConstIterator it = clients.begin(); it != clients.end(); ++it) {
if ( (*it)->isMaximized() )