diff --git a/scripting/workspace_wrapper.cpp b/scripting/workspace_wrapper.cpp index 86f98966d7..53036ea361 100644 --- a/scripting/workspace_wrapper.cpp +++ b/scripting/workspace_wrapper.cpp @@ -175,6 +175,11 @@ QRect WorkspaceWrapper::clientArea(ClientAreaOption option, int screen, int desk return Workspace::self()->clientArea(static_cast(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*))); diff --git a/scripting/workspace_wrapper.h b/scripting/workspace_wrapper.h index d8700a37ad..911420e5f5 100644 --- a/scripting/workspace_wrapper.h +++ b/scripting/workspace_wrapper.h @@ -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