ICCCM 4.1.5 compliant configureRequest handling
svn path=/trunk/kdebase/kwin/; revision=60470
This commit is contained in:
parent
ecba5c3ea2
commit
407efd9ad3
1 changed files with 2 additions and 3 deletions
|
@ -481,7 +481,7 @@ bool Client::manage( bool isMapped, bool doNotShow )
|
|||
|
||||
QRect geom( original_geometry );
|
||||
bool placementDone = FALSE;
|
||||
|
||||
|
||||
SessionInfo* session = workspace()->takeSessionInfo( this );
|
||||
if ( session )
|
||||
geom.setRect( session->x, session->y, session->width, session->height );
|
||||
|
@ -856,8 +856,7 @@ bool Client::configureRequest( XConfigureRequestEvent& e )
|
|||
int gravity = NorthWestGravity;
|
||||
if ( xSizeHint.flags & PWinGravity)
|
||||
gravity = xSizeHint.win_gravity;
|
||||
if ( TRUE || gravity == StaticGravity ) {
|
||||
// the TRUE makes it work with real programs, but it's not ICCCM.
|
||||
if ( gravity == StaticGravity ) { // only with StaticGravity according to ICCCM 4.1.5
|
||||
ox = windowWrapper()->x();
|
||||
oy = windowWrapper()->y();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue