Commit a4397bbf authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

[Task Manager] React to activities changes

A window can be moved to another activity externally, for example using
the user actions menu in kwin. The window model should notify the task
manager when such an event occurs.
parent 3b801f8e
......@@ -314,6 +314,14 @@ void WaylandTasksModel::Private::addWindow(KWayland::Client::PlasmaWindow *windo
QObject::connect(window, &KWayland::Client::PlasmaWindow::applicationMenuChanged, q, [window, this] {
this->dataChanged(window, QVector<int>{ApplicationMenuServiceName, ApplicationMenuObjectPath});
});
QObject::connect(window, &KWayland::Client::PlasmaWindow::plasmaActivityEntered, q, [window, this] {
this->dataChanged(window, Activities);
});
QObject::connect(window, &KWayland::Client::PlasmaWindow::plasmaActivityLeft, q, [window, this] {
this->dataChanged(window, Activities);
});
}
AppData WaylandTasksModel::Private::appData(KWayland::Client::PlasmaWindow *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