Bug 269059

Summary: kwin with BorderlessMaximizedWindows=true cannot correctly remember the original window size.
Product: [Plasma] kwin Reporter: Weng Xuetian <wengxt>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: alex.danila.web, gregor
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Weng Xuetian 2011-03-21 17:16:20 UTC
Version:           unspecified (using KDE 4.6.1) 
OS:                Linux

with BorderlessMaximizedWindows=true, no matter under plasma-netbook or plasma-desktop, the windowsize cannot be remembered after maximized.

Reproducible: Always

Steps to Reproduce:
1 open any window
2. resize window with a small size.
3. maximize the window
4. unmaximize the window.

Actual Results:  
window will change to vertical maximized.

Expected Results:  
window return to the original size.
Comment 1 Thomas Lübking 2011-03-21 19:12:18 UTC
See, this is why there's no GUI option ;-P

Anyway, i can confirm the issue and it's a bug nevertheless.
The reason is that this

if (options->borderlessMaximizedWindows())
        setNoBorder(app_noborder || max_mode == MaximizeFull);

must not happen /before/ the geometry is stored.
Comment 2 Gregor Tätzner 2011-10-28 14:22:58 UTC
I can't reproduce this bug any more on KDE 4.7.2 (compositing enabled and plasma-desktop)