Bug 432137 - Generated window class match doesn't match if it contains trailing whitespaces
Summary: Generated window class match doesn't match if it contains trailing whitespaces
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kwin
Classification: Plasma
Component: rules (show other bugs)
Version: 5.20.90
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-26 08:21 UTC by Fabian Vogt
Modified: 2023-09-06 10:38 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabian Vogt 2021-01-26 08:21:44 UTC
When trying to create a window rule for YaST, the prefilled generated conditions don't match.

Changing the window class match from "Exact match" to "Match substring" makes it work.

I believe this is because there are trailing spaces in WM_CLASS and WM_NAME for some reason:

WM_NAME(STRING) = "YaST2 - partitioner @ localhost.localdomain                                     "
_NET_WM_NAME(UTF8_STRING) = "YaST2 - partitioner @ localhost.localdomain                                     "
WM_CLASS(STRING) = "YaST2", "YaST2 - partitioner @ localhost.localdomain                                     "

Originally reported downstream as https://bugzilla.opensuse.org/show_bug.cgi?id=1181316.
Comment 1 David Edmundson 2023-09-06 10:38:48 UTC
This bug was reported against an outdated version of KWin. We have made many changes since the. 
If the issue persists in newer versions can you reopen the bug report updating the version number.