Every time I shade (reduce to titlebar) and restore a window, it gets smaller in height. The console window e.g. is reduced by 4 pixel every shade/restore cycle. I used the standard Breeze desktop theme and window decorations. Release: Kubuntu 16.04 LTS Reproducible: Always Steps to Reproduce: 1. Open e.g. console window 2. Choose "Shade" from titlebar actions menu to reduce window 3. Choose "Shade" again to restore window Actual Results: Window height is reduced by some pixels Expected Results: Window should be the same height as before shade
Created attachment 98708 [details] Screenshot of console window (1) Original window (2) "Shaded" window (3) Restored window with reduced height
I cannot confirm this behavior. I just created a test case for this bug report and the geometry gets restored properly. I also just tried the exact same steps as you described and konsole does not shrink. It's possible that I use a newer Qt version which fixed the problem.
Git commit 568a036762fd80fc6c630c462969aee64ec6124d by Martin Gräßlin. Committed on 11/05/2016 at 08:43. Pushed by graesslin into branch 'master'. [autotests] Add test case for verifying that (un)shade keeps window geometry This adds a new test case which creates an x11 window, shades it, unshades it and verifies that the geometry is still the same. M +11 -0 autotests/wayland/CMakeLists.txt A +143 -0 autotests/wayland/shade_test.cpp [License: GPL (v2)] http://commits.kde.org/kwin/568a036762fd80fc6c630c462969aee64ec6124d
The test passes on build.kde.org. I don't see what to do here and assume fixed by newer version. If you have a chance to try KWin 5.6 and it's not fixed, please reopen.
Tried the KDE 5.6 packages from kubuntu-ppa/staging-plasma - the problem no longer occurs.
thanks for testing and reporting back!