Commit 287ad956 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

scripting: Add null window guard in WorkspaceWrapper::clientArea()

Workspace::clientArea(clientAreaOpt, Window*) expects a valid pointer.

BUG: 458598
parent 006ee8b8
Pipeline #229490 passed with stage
in 45 minutes and 51 seconds
......@@ -281,11 +281,17 @@ QRectF WorkspaceWrapper::clientArea(ClientAreaOption option, const QPoint &p, Vi
QRectF WorkspaceWrapper::clientArea(ClientAreaOption option, const KWin::Window *c) const
{
if (!c) {
return QRectF();
}
return Workspace::self()->clientArea(static_cast<clientAreaOption>(option), c);
}
QRectF WorkspaceWrapper::clientArea(ClientAreaOption option, KWin::Window *c) const
{
if (!c) {
return QRectF();
}
return Workspace::self()->clientArea(static_cast<clientAreaOption>(option), c);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment