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.
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.
Created attachment 159399 [details] kcmshell5 kcm_kwinrules A screenshot of the correct test configuration, per kcm_kwinrules's GUI.
*** This bug has been marked as a duplicate of bug 452240 ***