Bug 266607

Summary: restore after maximize for xterm does not work
Product: [Plasma] kwin Reporter: k.koepernik
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: aspotashev, iankbullock
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 4.7
Sentry Crash Report:

Description k.koepernik 2011-02-18 15:28:26 UTC
Version:           unspecified (using KDE 4.6.0) 
OS:                Linux

xterm under kubuntu/kde4.6 does not restore to original size after
maximize. The maximize flag in the window menu is not set ... I guess
that's why. 
Weird enough the horizontal maximize works as expected ... it
restores on second invocation. So I assume it is the vertical part of
maximize, which is the culprit.

Reproducible: Didn't try

Steps to Reproduce:
Open an xterm. Use Hotkey or window-menu to maximize.
It maximizes. Open the window-menu ... maximize-checkbox is not set. 
ry maximize again ... it does not restore the xterm to it's original size.
Try the hotkey (have to set one first?) for horizontal maximize.
This one toggles the horiz-max state correctly (as in former kde versions).
Comment 1 Thomas Lübking 2011-02-18 15:58:57 UTC
it's a bit more "complex" but the below patch unlinks "maximized" from "cover all screen area"
atm. you cannot restore the window because it's never maxmized (partial maximization have other omplementation issues to be adressed on top and for 4.7)

you can re-enable maximization for clients like xterm by adding a rule (kcmshell4 kwinrules) and select "strictly obey geometry" in the advanced tab but NOT check the last checkbox.
this will ignore the geometry restrictions (fix baseincrement) as set by xterm and some others (for debatable reasons)

http://git.reviewboard.kde.org/r/100606/
Comment 2 Thomas Lübking 2011-05-24 14:35:56 UTC
*** Bug 274023 has been marked as a duplicate of this bug. ***