Commit 2a5ef4e1 authored by David Edmundson's avatar David Edmundson Committed by Janet Blackquill
Browse files

[libtaskmanager] Notify when appmenu path changes

This isn't always static, espcially in GTK apps where the xproperty is
set later by gmenuproxyodel.

The Appmenu applet already watches for this role changing, but it wasn't
hooked up.

The wayland implementation does not have the same bug.

BUG: 422786
parent 0261f338
......@@ -398,6 +398,14 @@ void XWindowTasksModel::Private::windowChanged(WId window, NET::Properties prope
changedRoles << Activities;
}
if (properties2 & NET::WM2AppMenuServiceName) {
changedRoles << ApplicationMenuServiceName;
}
if (properties2 & NET::WM2AppMenuObjectPath) {
changedRoles << ApplicationMenuObjectPath;
}
if (wipeInfoCache) {
delete windowInfoCache.take(window);
}
......
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