| Summary: | Allow to modify titlebar buttons (decorations) | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Plata <plata.hill> |
| Component: | scripting | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | wishlist | CC: | natalie_clarius, nate |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Plata
2023-02-12 11:42:27 UTC
This can already be achieved with a custom window decoration. What is the use case for modifying the option in a KWin script? (In reply to Natalie Clarius from comment #1) > This can already be achieved with a custom window decoration. What is the > use case for modifying the option in a KWin script? I wrote this: https://store.kde.org/p/1985909. The problem is that apps with CSD do not care about the noBorder and still draw the titlebar buttons inside the window. So I would like to remove the buttons from the decoration completely. However, the buttons must be shown if the window is moved to the external screen. Therefore, I cannot use custom window decoration (or am I missing something?). But how setting the buttons for KDecorations help for apps that don't use them and will draw their own buttons anyway? If I remove the buttons from System Settings, it works. The assumption was that it would behave the same way in the KWin script. But yes, that might be naive if System Settings has a separate way to ensure consistency in GTK apps (don't know how it's implemented). Ah, you're right, it does actually affect CSDs too. Ignore my previous comment then, sorry. Alternatively to adding many things individually to the scripting API, there could be one function to use kwriteconfig5 or even run a shell script. The latter would be very powerful but might have security implications. |