Bug 362501 - Shade/restore shrinks window height piece by piece
Summary: Shade/restore shrinks window height piece by piece
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.5.5
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-30 13:36 UTC by Peter Mühlenpfordt
Modified: 2016-05-12 07:54 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screenshot of console window (99.18 KB, image/png)
2016-04-30 13:38 UTC, Peter Mühlenpfordt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Mühlenpfordt 2016-04-30 13:36:14 UTC
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
Comment 1 Peter Mühlenpfordt 2016-04-30 13:38:25 UTC
Created attachment 98708 [details]
Screenshot of console window

(1) Original window
(2) "Shaded" window
(3) Restored window with reduced height
Comment 2 Martin Flöser 2016-05-11 08:33:10 UTC
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.
Comment 3 Martin Flöser 2016-05-11 08:44:47 UTC
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
Comment 4 Martin Flöser 2016-05-11 09:02:08 UTC
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.
Comment 5 Peter Mühlenpfordt 2016-05-12 07:43:28 UTC
Tried the KDE 5.6 packages from kubuntu-ppa/staging-plasma - the problem no longer occurs.
Comment 6 Martin Flöser 2016-05-12 07:54:39 UTC
thanks for testing and reporting back!