Commit 83078eb3 authored by Usarin Heininga's avatar Usarin Heininga
Browse files

Connect to PlasmaWindowManagement::stackingOrderUuidsChanged.

Now WaylandTasksModel StackingOrder role emits a signal on change just
like the other roles.
parent 06b0ee3a
......@@ -150,6 +150,13 @@ void WaylandTasksModel::Private::initWayland()
addWindow(window);
});
QObject::connect(windowManagement, &KWayland::Client::PlasmaWindowManagement::stackingOrderUuidsChanged, q, [this]() {
for (const auto window : qAsConst(windows)) {
this->dataChanged(window, StackingOrder);
}
}
);
const auto windows = windowManagement->windows();
for (auto it = windows.constBegin(); it != windows.constEnd(); ++it) {
addWindow(*it);
......
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