[scripting] Expose Workspace::sendClientToDesktop()

Summary:
BUG: 416093
FIXED-IN: 5.18.0

Test Plan: Only compile-time check.

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D26988
This commit is contained in:
Vlad Zahorodnii 2020-01-29 15:39:14 +02:00
parent c43b25bd55
commit 76297196e8
2 changed files with 13 additions and 0 deletions

View file

@ -347,6 +347,14 @@ QSize WorkspaceWrapper::virtualScreenSize() const
return screens()->size();
}
void WorkspaceWrapper::sendClientToScreen(AbstractClient *client, int screen)
{
if (screen < 0 || screen >= screens()->count()) {
return;
}
workspace()->sendClientToScreen(client, screen);
}
QtScriptWorkspaceWrapper::QtScriptWorkspaceWrapper(QObject* parent)
: WorkspaceWrapper(parent) {}

View file

@ -330,6 +330,11 @@ public Q_SLOTS:
void slotWindowToDesktopUp();
void slotWindowToDesktopDown();
/**
* Sends the AbstractClient to the given @p screen.
*/
void sendClientToScreen(KWin::AbstractClient *client, int screen);
/**
* Shows an outline at the specified @p geometry.
* If an outline is already shown the outline is moved to the new position.