don't set framestrut on move, but on manage
svn path=/trunk/kdebase/kwin/; revision=78846
This commit is contained in:
parent
67d7da494c
commit
440ed4d27f
1 changed files with 10 additions and 10 deletions
20
client.cpp
20
client.cpp
|
@ -611,6 +611,16 @@ bool Client::manage( bool isMapped, bool doNotShow, bool isInitial )
|
||||||
resize ( sizeForWindowSize( geom.size() ) );
|
resize ( sizeForWindowSize( geom.size() ) );
|
||||||
activateLayout();
|
activateLayout();
|
||||||
|
|
||||||
|
// inform clients about the frame geometry
|
||||||
|
NETStrut strut;
|
||||||
|
QRect wr = windowWrapper()->geometry();
|
||||||
|
QRect mr = rect();
|
||||||
|
strut.left = wr.left();
|
||||||
|
strut.right = mr.right() - wr.right();
|
||||||
|
strut.top = wr.top();
|
||||||
|
strut.bottom = mr.bottom() - wr.bottom();
|
||||||
|
info->setKDEFrameStrut( strut );
|
||||||
|
|
||||||
move( geom.x(), geom.y() );
|
move( geom.x(), geom.y() );
|
||||||
gravitate( FALSE );
|
gravitate( FALSE );
|
||||||
|
|
||||||
|
@ -1189,16 +1199,6 @@ void Client::sendSynteticConfigureNotify()
|
||||||
c.height = windowWrapper()->height();
|
c.height = windowWrapper()->height();
|
||||||
c.border_width = 0;
|
c.border_width = 0;
|
||||||
XSendEvent( qt_xdisplay(), c.event, TRUE, NoEventMask, (XEvent*)&c );
|
XSendEvent( qt_xdisplay(), c.event, TRUE, NoEventMask, (XEvent*)&c );
|
||||||
|
|
||||||
// inform clients about the frame geometry
|
|
||||||
NETStrut strut;
|
|
||||||
QRect wr = windowWrapper()->geometry();
|
|
||||||
QRect mr = rect();
|
|
||||||
strut.left = wr.left();
|
|
||||||
strut.right = mr.right() - wr.right();
|
|
||||||
strut.top = wr.top();
|
|
||||||
strut.bottom = mr.bottom() - wr.bottom();
|
|
||||||
info->setKDEFrameStrut( strut );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue