Applied motif windows placement workaround from kwm 1.1.2, and added a personal workaround for Netscape
svn path=/trunk/kdebase/kwin/; revision=68436
This commit is contained in:
parent
420b046646
commit
bf97a2aeec
1 changed files with 8 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue