Bug 489431

Summary: window doesn't restore proper size after maximize/unmaximize cycle
Product: [Plasma] kwin Reporter: Alexander Maltsev <keltar.gw>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: fanzhuyifan
Priority: NOR    
Version First Reported In: 6.1.1   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.1.3
Sentry Crash Report:

Description Alexander Maltsev 2024-06-29 12:50:49 UTC
SUMMARY

Applications with window sizes restricted to some intervals (e.g. xterm, rxvt, gvim don't resize on per-pixel basis, but for text lines/columns instead) are getting smaller and smaller after each maximize/unmaximize cycle. Notably it doesn't affect konsole (which could be resized on per-pixel intervals) or gnome-terminal (which couldn't, but still not affected).

STEPS TO REPRODUCE
1. Open xterm/rxvt/gvim
2. maximize window
3. unmaximize window. It gets one line smaller. Repeat steps 2 and 3, it gets smaller after each one, until only one line remains

OBSERVED RESULT
Window gets smaller after each unmaximize

EXPECTED RESULT
Window size remains the same as before first maximize, as it were with plasma 5

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo
(available in About System)
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Comment 1 Alexander Maltsev 2024-07-29 17:16:04 UTC
Appears to be fixed in kwin 6.1.3, can't reproduce now.