Applied motif windows placement workaround from kwm 1.1.2, and added a personal workaround for Netscape

svn path=/trunk/kdebase/kwin/; revision=68436
icc-effect-5.14.5
Nikita V. Youshchenko 2000-10-20 21:28:43 +00:00
parent 420b046646
commit bf97a2aeec
1 changed files with 8 additions and 1 deletions

View File

@ -538,7 +538,14 @@ bool Client::manage( bool isMapped, bool doNotShow, bool isInitial )
if ( isMapped || session || isTransient() ) {
placementDone = TRUE;
} else {
if ( (xSizeHint.flags & PPosition) || (xSizeHint.flags & USPosition) ) {
// Motif apps set invalid hints. Workaround that
// if ( (xSizeHint.flags & PPosition) || (xSizeHint.flags & USPosition) ) {
if ( ( ( xSizeHint.flags & PPosition ) &&
// For most Motif apps (from KDE 1.1.2 kwm)
( xSizeHint.x!=0 || xSizeHint.y!=0 ) &&
// Personally for Netscape - ugly, but tired of that bug ...
( xSizeHint.x!=10 || xSizeHint.y!=10 ) ) ||
( xSizeHint.flags & USPosition ) ) {
placementDone = TRUE;
if ( windowType() == NET::Normal && !area.contains( geom.topLeft() ) && may_move ) {
int tx = geom.x();