Bug 74057

Summary: Regression: KDE 3.2 session manager no longer able (or willing) to store off-screen geomentry
Product: [Plasma] kwin Reporter: Roland Seuhs <r>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Roland Seuhs 2004-02-03 11:22:30 UTC
Version:           3.2.0 (using KDE 3.2.0 RC1, SuSE)
Compiler:          gcc version 3.3 20030226 (prerelease) (SuSE Linux)
OS:          Linux (i686) release 2.4.20-4GB

When you have windows that are partly off-screen, the KDE 3.2 session manager breaks layout by forcing all windows to be fully on-screen (windows overlapping to the right are aligned to the right screen-edge, windows overlapping to the top are aligned to the top screen-edge, if a window is taller than the screen it's also aligned to the top screen-edge), so if you arranged your windows on a virtual desktop the whole layout is messed up after re-login.
Comment 1 Lubos Lunak 2004-02-10 12:45:09 UTC
CVS commit by lunakl: 

Don't force windows to be inside workarea if their geometry comes
from session restoration or if the window is already mapped.
CCMAIL: 74057-done@bugs.kde.org


  M +2 -1      manage.cpp   2.31


--- kdebase/kwin/manage.cpp  #2.30:2.31
@@ -277,5 +277,6 @@ bool Client::manage( Window w, bool isMa
         }
 
-    if (( !isSpecialWindow() || isToolbar()) && isMovable())
+    if( !isMapped && !session // trust position from session or if already mapped
+        && ( !isSpecialWindow() || isToolbar()) && isMovable())
         keepInArea( area );