Created attachment 155234 [details] property of element SUMMARY When I apply window rules for Element they don't work. Rule is [element] Description=element desktops=89fc92f3-0710-4a38-9b3f-4ea322967037 desktopsrule=2 wmclass=electron element wmclasscomplete=true wmclassmatch=1 STEPS TO REPRODUCE 1. Run wayland session 2. Setup window rules (example above) 2. Launch Element as native wayland app (https://wiki.archlinux.org/title/Wayland#Electron), use 1.11.16 if you use Arch(there is a bug leading crash) OBSERVED RESULT Rules are not being applied. Window is on wrong virtual desktop. EXPECTED RESULT Rules apply according to their definition. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.26.5 KDE Frameworks Version: 5.101.0 Qt Version: 5.15.8 Graphics Platform: Wayland ADDITIONAL INFORMATION property of element is in attachment
Same issue as Bug 453374; see the explanation there. *** This bug has been marked as a duplicate of bug 453374 ***
(In reply to Nate Graham from comment #1) > Same issue as Bug 453374; see the explanation there. > > *** This bug has been marked as a duplicate of bug 453374 *** Not same, please see attachment above, its app id is Element not electron.
"wmclass=electron element" but the app id is "Element", one is lower case, the other is upper case.
(In reply to Vlad Zahorodnii from comment #3) > "wmclass=electron element" but the app id is "Element", one is lower case, > the other is upper case. First, after I right click menu of titlebar of element, I got default value LOWER case 'electron element'. It may be a problem. Secondly, although I change it to upper case 'Element' and use substring match, it still not work. New rule is [element] Description=element desktops=89fc92f3-0710-4a38-9b3f-4ea322967037 desktopsrule=2 wmclass=Element wmclasscomplete=true wmclassmatch=2
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/3441
(In reply to Celeste Liu from comment #4) > (In reply to Vlad Zahorodnii from comment #3) > > "wmclass=electron element" but the app id is "Element", one is lower case, > > the other is upper case. > > First, after I right click menu of titlebar of element, I got default value > LOWER case 'electron element'. It may be a problem. > > Secondly, although I change it to upper case 'Element' and use substring > match, it still not work. New rule is > [element] > Description=element > desktops=89fc92f3-0710-4a38-9b3f-4ea322967037 > desktopsrule=2 > wmclass=Element > wmclasscomplete=true > wmclassmatch=2 "wmclass=Element" is wrong, it should be "wmclass=electron Element"
Ah, nvm, I did notice "substring"
didn't*
Git commit 5963790b21ae9bfd10e425a3d0cf3f14fad14251 by Vlad Zahorodnii. Committed on 16/01/2023 at 16:52. Pushed by vladz into branch 'master'. kcms/rules: Use window class and role with original casing The window rules kcm uses lower-case window class and role, but kwin can use window class and role with other casing, which will break the ExactMatch match rule. M +6 -6 src/kcms/rules/kcmrules.cpp M +7 -7 src/rules.cpp https://invent.kde.org/plasma/kwin/commit/5963790b21ae9bfd10e425a3d0cf3f14fad14251
> Secondly, although I change it to upper case 'Element' and use substring match, it still not work This should be fixed too