Bug 478266 - UI for configuring button visibility/order for GTK CSD windows
Summary: UI for configuring button visibility/order for GTK CSD windows
Status: CONFIRMED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_kwindecoration (show other bugs)
Version: 5.27.9
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-08 15:40 UTC by Quinten Kock
Modified: 2023-12-08 16:10 UTC (History)
2 users (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 Quinten Kock 2023-12-08 15:40:06 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
Gnome applications with CSDs are not affected by changing the settings in Titlebar Actions. This makes sense, however: Gnome allows customizing the behaviour of titlebar actions too, and when you change them in Gnome (via e.g. gnome-tweaks) they also affect GTK CSDs. It would be nice if the KCM was able to configure this, whether automatically synced or not.

Automatic syncing is probably undesirable for various reasons, not in the least that Gnome's options are less flexible. But adding these options to the KCM might be nice, so that a user can easily change the GTK CSD behaviour (similarly to how the Application Style KCM can change the GTK style).


STEPS TO REPRODUCE
1. Change Titlebar actions to e.g. minimize on middle click.
2. Open a GTK app with CSD
3. Try to use the modified shortcut

OBSERVED RESULT
Default (GNOME) behaviour

EXPECTED RESULT
Either customized KDE behaviour, or having an option to customize the GTK behaviour.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.112.0
Qt Version: 5.15.11

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2023-12-08 16:10:07 UTC
Yeah, doing it automatically is out of the question since the capabilities of GTK CSDs and non-GTK SSDs differ; they don't have the same buttons, you can move all buttons to the other side of the window, etc. We would have to make this GTK CSD configurator an explicitly separate thing to avoid making promises we can't keep/