Commit 260fa71d authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

Send done event after the number of rows has been changed

Summary:
The plasma virtual desktop protocol states the following about
the done event

> This event is sent after all other properties has been sent after
> binding to the desktop manager object and after any other property
> changes done after that.

Thus we have to send that event when the number of rows has been changed.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D18518
parent 7762da76
......@@ -80,7 +80,12 @@ void VirtualDesktopManager::setVirtualDesktopManagement(KWayland::Server::Plasma
connect(this, &VirtualDesktopManager::desktopCreated, m_virtualDesktopManagement, createPlasmaVirtualDesktop);
connect(this, &VirtualDesktopManager::rowsChanged, m_virtualDesktopManagement,
&PlasmaVirtualDesktopManagementInterface::setRows);
[this](uint rows) {
m_virtualDesktopManagement->setRows(rows);
m_virtualDesktopManagement->sendDone();
}
);
//handle removed: from VirtualDesktopManager to the wayland interface
connect(this, &VirtualDesktopManager::desktopRemoved, m_virtualDesktopManagement,
[this](VirtualDesktop *desktop) {
......
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