Commit 1cb2d38a authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

activation: Be liberal about the StartupWMClass

Some apps (e.g. VirtualBox) are inconsistent there.
parent c68a0f5d
Pipeline #206638 passed with stage
in 11 minutes and 57 seconds
......@@ -42,7 +42,7 @@ static const QString windowDesktopFileName(Window *window)
// Fallback to StartupWMClass for legacy apps
const auto resourceName = window->resourceName();
const auto service = KApplicationTrader::query([&resourceName](const KService::Ptr &service) {
return service->property("StartupWMClass") == resourceName;
return service->property("StartupWMClass").toString().compare(resourceName, Qt::CaseInsensitive) == 0;
});
if (!service.isEmpty()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment