diff --git a/src/scripting/workspace_wrapper.cpp b/src/scripting/workspace_wrapper.cpp index 8d664aed6e..9a56a25e2f 100644 --- a/src/scripting/workspace_wrapper.cpp +++ b/src/scripting/workspace_wrapper.cpp @@ -248,6 +248,11 @@ QRect WorkspaceWrapper::clientArea(ClientAreaOption option, const KWin::Abstract return Workspace::self()->clientArea(static_cast(option), c); } +QRect WorkspaceWrapper::clientArea(ClientAreaOption option, KWin::AbstractClient *c) const +{ + return Workspace::self()->clientArea(static_cast(option), c); +} + QRect WorkspaceWrapper::clientArea(ClientAreaOption option, int screen, int desktop) const { return Workspace::self()->clientArea(static_cast(option), screen, desktop); diff --git a/src/scripting/workspace_wrapper.h b/src/scripting/workspace_wrapper.h index b21b7f3bae..68956bcca0 100644 --- a/src/scripting/workspace_wrapper.h +++ b/src/scripting/workspace_wrapper.h @@ -241,6 +241,7 @@ void setter( rettype val ); * @param client The Client for which the area should be retrieved * @returns The specified screen geometry */ + Q_SCRIPTABLE QRect clientArea(ClientAreaOption option, KWin::AbstractClient *client) const; Q_SCRIPTABLE QRect clientArea(ClientAreaOption option, const KWin::AbstractClient *client) const; /** * Returns the name for the given @p desktop.