Bug 487610 - On X11, Shade button is sometimes missing
Summary: On X11, Shade button is sometimes missing
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: Window shading (other bugs)
Version First Reported In: 6.0.4
Platform: openSUSE Linux
: LO normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: X11-only
Depends on:
Blocks:
 
Reported: 2024-05-27 03:41 UTC by Eric Renfro
Modified: 2025-02-24 17:58 UTC (History)
2 users (show)

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


Attachments
Visual setup of titlebar buttons used in final resulting situation. (31.67 KB, image/png)
2024-05-27 03:41 UTC, Eric Renfro
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Renfro 2024-05-27 03:41:20 UTC
Created attachment 169867 [details]
Visual setup of titlebar buttons used in final resulting situation.

SUMMARY
I've customised my titlebar buttons in a way that isn't very complex, but has the close-window, minimize, maximize, app-menu on the left side, sticky, help, and actions on the right, which worked fine for what I could tell.
Then I added the shade option to the beginning of the right side, so I could roll up windows but keep them handy. This shade button does not show up most times during login/autostart of applications, including Betterbird (Flatpak), Vivaldi (titlebar enabled), Discord (Flatpak), and Ferdium which are my usually auto-started applications.

STEPS TO REPRODUCE
1. Open Settings. Go into Window Decorations, and Titlebar Buttons, adjust the titlebar options to close, minimize, maximize, appmenu, and sticky, help, and actions. Apply. Close settings. Possibly reboot, relog, etc..
2. Open Settings. Go into Window Declarations, and Titlebar Buttons, add in the Shade option to the right side next to sticky. Apply, close settings, reboot/relogin/etc. 
3. Insure that autostarted applications are running, as this effect seems to only be during initial login.

OBSERVED RESULT
Titlebar Buttons are mostly there, but Shade is specifically not there during autostarted applications.

EXPECTED RESULT
All Titlebar Buttons to be present accordingly. Especially Shade, the newer set button.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed, Linux 6.9.1-1-default
(available in About System)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0

ADDITIONAL INFORMATION
Using Xorg/X11
Comment 1 Eric Renfro 2024-05-27 05:39:08 UTC
Further information on this. I went to edit the Titlebar Buttons and moved the Shade to the right of the Sticky button, and it worked, flawlessly for several attempts. But when I moved it back to the left of the sticky button it literally vanished from t he window titlebars as I applied it.
It's hard to reliably repeat this issue consistently because moving the buttons around don't tend to want to drag into place but want to go to the extreme edges, or simply not where I actually point it to be.
Comment 2 Akseli Lahtinen 2024-05-27 11:27:38 UTC
Can't reproduce this on Plasma 6.1, I only get the shade button to disappear when I move them around in settings like you said, but after reopening a window it works.

Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.80
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.0
Kernel Version: 6.8.10-300.fc40.x86_64 (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600
Comment 3 Eric Renfro 2024-05-30 04:41:06 UTC
(In reply to Akseli Lahtinen from comment #2)
> Can't reproduce this on Plasma 6.1, I only get the shade button to disappear
> when I move them around in settings like you said, but after reopening a
> window it works.

Simply re-opening is where it works fine. It's when you log out and back in, or reboot, and have applications auto-started is where I noticed the issue first.
Comment 4 TraceyC 2025-02-24 17:58:20 UTC
Adding the x11-only keyword