Summary: | Saving window sizes seem to produce wrong results. | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Thomas Zander <zander> |
Component: | general | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Thomas Zander
2004-01-11 12:52:51 UTC
Subject: kdelibs/kdeui CVS commit by lunakl: Fix a lame mistake and a lame mistake. CCMAIL: 72387-done@bugs.kde.org M +4 -4 kmainwindow.cpp 1.124 --- kdelibs/kdeui/kmainwindow.cpp #1.123:1.124 @@ -878,10 +878,10 @@ void KMainWindow::restoreWindowSize( KCo int state = ( size.width() > desk.width() ? NET::MaxHoriz : 0 ) | ( size.height() > desk.height() ? NET::MaxVert : 0 ); - if( state & NET::Max ) + if(( state & NET::Max ) == NET::Max ) ; // no resize - else if( state & NET::MaxHoriz ) + else if(( state & NET::MaxHoriz ) == NET::MaxHoriz ) resize( width(), size.height()); - else if( state & NET::MaxVert ) - resize( size.height(), height()); + else if(( state & NET::MaxVert ) == NET::MaxVert ) + resize( size.width(), height()); else resize( size ); |