Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Support glob patterns for window classes to force blur #101

Open
Interpause opened this issue Aug 17, 2024 · 0 comments
Open
Milestone

Comments

@Interpause
Copy link

I am using "Blur only matching" mode to avoid the performance penalty of rendering everything as transparent. However, under my kvantum theme, most KDE applications include some transparency that should be blurred. As a result, the window class list becomes really long, for example:

...
org.kde.khelpcenter
org.kde.kdesu
org.kde.kfind
org.kde.merkuro.calendar
org.kde.kmenuedit
org.kde.sweeper
org.kde.kbackup
org.kde.kwalletmanager5
...

It would be nice if org.kde.* was all that was needed. Hence, would it be possible to support glob patterns? I believe the relevant function to modify is here:

bool BlurEffect::shouldForceBlur(const EffectWindow *w) const
{
if (w->isDesktop() || (!m_blurDocks && w->isDock()) || (!m_blurMenus && isMenu(w))) {
return false;
}
bool matches = m_windowClasses.contains(w->window()->resourceName())
|| m_windowClasses.contains(w->window()->resourceClass());
return (matches && m_blurMatching) || (!matches && m_blurNonMatching);
}

Thanks.

@taj-ny taj-ny added this to the v1.4.0 milestone Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants