Commit ac4fe1a8 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧 Committed by Aleix Pol Gonzalez
Browse files

activation: Be liberal about the StartupWMClass

Some apps (e.g. VirtualBox) are inconsistent there.

(cherry picked from commit 1cb2d38a)
parent 81ff7737
Pipeline #206643 passed with stage
in 13 minutes and 54 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