scripting: Add clientArea() overload that takes mutable client
Even though there is a clientArea() overload that takes const abstract clients, QJSEngine seems to be unable to find the right clientArea() overload if a mutable abstract client has been passed. BUG: 437507
This commit is contained in:
parent
9c689d7ddb
commit
d4f75f3e64
2 changed files with 6 additions and 0 deletions
|
@ -248,6 +248,11 @@ QRect WorkspaceWrapper::clientArea(ClientAreaOption option, const KWin::Abstract
|
|||
return Workspace::self()->clientArea(static_cast<clientAreaOption>(option), c);
|
||||
}
|
||||
|
||||
QRect WorkspaceWrapper::clientArea(ClientAreaOption option, KWin::AbstractClient *c) const
|
||||
{
|
||||
return Workspace::self()->clientArea(static_cast<clientAreaOption>(option), c);
|
||||
}
|
||||
|
||||
QRect WorkspaceWrapper::clientArea(ClientAreaOption option, int screen, int desktop) const
|
||||
{
|
||||
return Workspace::self()->clientArea(static_cast<clientAreaOption>(option), screen, desktop);
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue