Commit df22d2ac authored by Marco Martin's avatar Marco Martin
Browse files

add a static PlasmaShellSurfaceInterface::get(wl_resource*)

to get the associated plasmashell surface from anywhere having
the associated resource
parent 72316718
......@@ -320,5 +320,10 @@ bool PlasmaShellSurfaceInterface::skipTaskbar() const
return d->m_skipTaskbar;
}
PlasmaShellSurfaceInterface *PlasmaShellSurfaceInterface::get(wl_resource *native)
{
return Private::get<PlasmaShellSurfaceInterface>(native);
}
}
}
......@@ -136,6 +136,12 @@ public:
*/
bool skipTaskbar() const;
/**
* @returns The PlasmaShellSurfaceInterface for the @p native resource.
* @since 5.5
**/
static PlasmaShellSurfaceInterface *get(wl_resource *native);
Q_SIGNALS:
/**
* A change of global position has been requested.
......
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