workarea stuff

svn path=/trunk/kdebase/kwin/; revision=57913
icc-effect-5.14.5
Matthias Ettrich 2000-07-19 01:26:00 +00:00
parent 04eef0150a
commit 47f386209b
2 changed files with 7 additions and 5 deletions

View File

@ -401,10 +401,6 @@ Client::Client( Workspace *ws, WId w, QWidget *parent, const char *name, WFlags
info = new WinInfo( this, qt_xdisplay(), win, qt_xrootwin(), properties );
XWindowAttributes attr;
if (XGetWindowAttributes(qt_xdisplay(), win, &attr)){
original_geometry.setRect(attr.x, attr.y, attr.width, attr.height );
}
mapped = 0;
wwrap = new WindowWrapper( w, this );
wwrap->installEventFilter( this );
@ -474,6 +470,11 @@ bool Client::manage( bool isMapped, bool doNotShow )
if (layout())
layout()->setResizeMode( QLayout::Minimum );
XWindowAttributes attr;
if (XGetWindowAttributes(qt_xdisplay(), win, &attr))
original_geometry.setRect(attr.x, attr.y, attr.width, attr.height );
QRect geom( original_geometry );
bool placementDone = FALSE;

View File

@ -2669,7 +2669,8 @@ void Workspace::updateClientArea()
r.pos.y = area.y();
r.size.width = area.width();
r.size.height = area.height();
for( int i = 0; i < numberOfDesktops(); i++) {
for( int i = 1; i <= numberOfDesktops(); i++) {
qDebug("setWorkArea %d to %d %d %d %d", i, area.x(), area.y(), area.width(), area.height() );
rootInfo->setWorkArea( i, r );
}
}