Bug 453282 - Adding a "shade" button to the right hand side of window titlebars causes the rightmost button to disappear when an application returns from fullscreen
Summary: Adding a "shade" button to the right hand side of window titlebars causes the...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: Window shading (show other bugs)
Version: 5.24.4
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-02 06:40 UTC by Steve Vialle
Modified: 2024-10-29 09:51 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Vialle 2022-05-02 06:40:48 UTC
SUMMARY
Adding the "shade" button to the right hand side of window titlebars causes the rightmost titlebar button (usually "close") to disappear when an application returns from fullscreen, as if pushed off the end of the titlebar. 
Titlebar is redrawn correctly if the window is later horizontally resized.
Observed with smplayer, VLC and gwenview, when using breeze or oxygen decorations, but not with plastik.
Removing the shade button from the titlebar or moving it to the left side restores expected behaviour.

STEPS TO REPRODUCE
1. Use the "breeze" or "oxygen" window decorations.
2. Add a "shade" button anywhere on the right hand side of the titlebar.
3. Launch one of the mentioned applications, enter fullscreen, then return to windowed.

OBSERVED RESULT
The rightmost titlebar button is either missing entirely or only partially visible, until the titlebar forced to redraw by resizing the window.

EXPECTED RESULT
Window titlebars are redrawn correctly as soon as an application returns from fullscreen.

SOFTWARE/OS VERSIONS
Platform: Gentoo GNU/Linux, openrc, X11. 
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Getting a window into this state then changing window decorations between breeze and oxygen does not redraw the titlebar correctly, instead the rightmost button reappears but the shade button itself vanishes. 
Horizontal resizing does not fix this condition, but  entering and exiting fullscreen again returns the titlebar to the original flavor of brokenness.

I'm not sure if all this is related to #450582, but it seems probable to me. IIRC it appeared around the same time too.
Comment 1 TraceyC 2024-10-14 20:56:09 UTC
Thank you for the bug report. Unfortunately we were not able to get to it yet. Can we ask you to please check if this is still an issue with either Plasma 5.27 (the current LTS version) or Plasma 6.2.0 (the latest released version)?

If you can still reproduce the bug, please change the Status to "CONFIRMED". Thanks.
Comment 2 Bug Janitor Service 2024-10-29 03:46:48 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Steve Vialle 2024-10-29 09:51:01 UTC
I can no longer reproduce this as of plasma 6.1.5. I can only assume it was coincidentally fixed some time in the 2 or so years of no apparent interest since I reported it.