Summary: | [Wayland] Window rules don't work with Element Desktop | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Celeste Liu <uwu> |
Component: | rules | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | isma.af, nate |
Priority: | NOR | ||
Version: | 5.26.5 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/commit/5963790b21ae9bfd10e425a3d0cf3f14fad14251 | Version Fixed In: | 5.27 |
Sentry Crash Report: | |||
Attachments: | property of element |
Description
Celeste Liu
2023-01-12 13:45:11 UTC
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
|