Commit c06d8975 authored by Jan Blackquill's avatar Jan Blackquill 🏳🌈

Fixes for D27959

Fixes issues that flew under the radar in D27959, namely:
- Missing KWindowInfo flags
- Returning service name instead of object path

Reviewed-By: kbroulik
parent 05627e48
......@@ -50,7 +50,7 @@ namespace TaskManager
static const NET::Properties windowInfoFlags = NET::WMState | NET::XAWMState | NET::WMDesktop |
NET::WMVisibleName | NET::WMGeometry | NET::WMFrameExtents | NET::WMWindowType | NET::WMPid;
static const NET::Properties2 windowInfoFlags2 = NET::WM2DesktopFileName | NET::WM2Activities |
NET::WM2WindowClass | NET::WM2AllowedActions;
NET::WM2WindowClass | NET::WM2AllowedActions | NET::WM2AppMenuObjectPath | NET::WM2AppMenuServiceName;
class Q_DECL_HIDDEN XWindowTasksModel::Private
{
......@@ -476,7 +476,7 @@ QString XWindowTasksModel::Private::appMenuServiceName(WId window)
QString XWindowTasksModel::Private::appMenuObjectPath(WId window)
{
const KWindowInfo *info = windowInfo(window);
return QString::fromUtf8(info->applicationMenuServiceName());
return QString::fromUtf8(info->applicationMenuObjectPath());
}
QIcon XWindowTasksModel::Private::icon(WId window)
......
Markdown is supported
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