Bug 470535

Summary: noborderrule=2 doesn't work on Wayland, does on X.
Product: [Plasma] kwin Reporter: Roke Julian Lockhart Beedell <4wy78uwh>
Component: rulesAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: isma.af, nate
Priority: NOR Keywords: wayland
Version: 5.27.10   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=479372
Latest Commit: Version Fixed In:
Attachments: .kwinrules
Test file.
kcmshell5 kcm_kwinrules

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 ***