Bug 470535 - noborderrule=2 doesn't work on Wayland, does on X.
Summary: noborderrule=2 doesn't work on Wayland, does on X.
Status: RESOLVED DUPLICATE of bug 452240
Alias: None
Product: kwin
Classification: Plasma
Component: rules (show other bugs)
Version: 5.27.10
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2023-06-01 18:25 UTC by Roke Julian Lockhart Beedell
Modified: 2024-01-10 19:44 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
.kwinrules (117.07 KB, image/png)
2023-06-01 18:25 UTC, Roke Julian Lockhart Beedell
Details
Test file. (289 bytes, text/plain)
2023-06-01 18:27 UTC, Roke Julian Lockhart Beedell
Details
kcmshell5 kcm_kwinrules (117.07 KB, image/png)
2023-06-01 18:28 UTC, Roke Julian Lockhart Beedell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roke Julian Lockhart Beedell 2023-06-01 18:25:20 UTC
Created attachment 159397 [details]
.kwinrules

SUMMARY
If “No titlebar and frame” is set to Force No (noborderrule=2 in a .kwinrules file) on X, window borders are forced for every window except context menus. This is what I expect.
On Wayland, all that this does is force the preference for XWayland windows.

STEPS TO REPRODUCE
0. kcmshell5 kcm_kwinrules
1. “Add new...”
2. 0. Set “Window class (application)” to Unimportant.
2. 1. Set “Window types” to “All selected”.
2. 2. Apply.

The consequence should be at least:
wmclasscomplete=true
noborderrule=2

OBSERVED RESULT
Stated in SUMMARY.

EXPECTED RESULT
The same should occur in Wayland.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230529
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.9
Kernel Version: 6.3.4-1-default (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 31.2 GiB of RAM
Graphics Processor: AMD Radeon RX 5700

ADDITIONAL INFORMATION
Weirdly, “Force”-ing the preference to Yes *does* work – it removes all window borders, even on Wayland.
Comment 1 Roke Julian Lockhart Beedell 2023-06-01 18:27:22 UTC
Created attachment 159398 [details]
Test file.

This is exactly what I've been using, which is why it contains a few more rules than necessary. Beware that KWin will replace any rulesets currently visible via kcmshell5 kcm_kwinrules if their names match those in the file provided – “X11” and/or “Wayland” – without prompt.

That's a separate issue, though.
Comment 2 Roke Julian Lockhart Beedell 2023-06-01 18:28:54 UTC
Created attachment 159399 [details]
kcmshell5 kcm_kwinrules

A screenshot of the correct test configuration, per kcm_kwinrules's  GUI.
Comment 3 Nate Graham 2024-01-10 19:44:47 UTC

*** This bug has been marked as a duplicate of bug 452240 ***