Export Desktop Name to scripts

This commit is contained in:
Martin Gräßlin 2012-02-19 16:45:44 +01:00
parent 356b406ae3
commit c76317fa0f
2 changed files with 9 additions and 0 deletions

View file

@ -175,6 +175,11 @@ QRect WorkspaceWrapper::clientArea(ClientAreaOption option, int screen, int desk
return Workspace::self()->clientArea(static_cast<clientAreaOption>(option), screen, desktop);
}
QString WorkspaceWrapper::desktopName(int desktop) const
{
return Workspace::self()->desktopName(desktop);
}
void WorkspaceWrapper::setupClientConnections(KWin::Client *client)
{
connect(client, SIGNAL(clientMinimized(KWin::Client*,bool)), SIGNAL(clientMinimized(KWin::Client*)));

View file

@ -156,6 +156,10 @@ void setter( rettype val );
* @returns The specified screen geometry
**/
Q_SCRIPTABLE QRect clientArea(ClientAreaOption option, const Client* client) const;
/**
* Returns the name for the given @p desktop.
**/
Q_SCRIPTABLE QString desktopName(int desktop) const;
public Q_SLOTS:
// all the available key bindings