DecoratedClientImpl::client returns AbstractClient* instead of Client*
This commit is contained in:
parent
ae28c2499d
commit
1758db337f
4 changed files with 6 additions and 5 deletions
|
@ -28,6 +28,7 @@ namespace KWin
|
|||
{
|
||||
|
||||
class Client;
|
||||
class AbstractClient;
|
||||
|
||||
namespace Decoration
|
||||
{
|
||||
|
@ -78,7 +79,7 @@ public:
|
|||
void requestToggleOnAllDesktops() override;
|
||||
void requestToggleShade() override;
|
||||
|
||||
Client *client() {
|
||||
AbstractClient *client() {
|
||||
return m_client;
|
||||
}
|
||||
Renderer *renderer() {
|
||||
|
@ -91,7 +92,7 @@ public:
|
|||
|
||||
private:
|
||||
void createRenderer();
|
||||
Client *m_client;
|
||||
AbstractClient *m_client;
|
||||
Renderer *m_renderer;
|
||||
};
|
||||
|
||||
|
|
|
@ -2429,7 +2429,7 @@ SceneOpenGLDecorationRenderer::SceneOpenGLDecorationRenderer(Decoration::Decorat
|
|||
: Renderer(client)
|
||||
, m_texture()
|
||||
{
|
||||
connect(this, &Renderer::renderScheduled, client->client(), static_cast<void (Client::*)(const QRect&)>(&Client::addRepaint));
|
||||
connect(this, &Renderer::renderScheduled, client->client(), static_cast<void (AbstractClient::*)(const QRect&)>(&AbstractClient::addRepaint));
|
||||
}
|
||||
|
||||
SceneOpenGLDecorationRenderer::~SceneOpenGLDecorationRenderer() = default;
|
||||
|
|
|
@ -571,7 +571,7 @@ bool SceneQPainterShadow::prepareBackend()
|
|||
SceneQPainterDecorationRenderer::SceneQPainterDecorationRenderer(Decoration::DecoratedClientImpl *client)
|
||||
: Renderer(client)
|
||||
{
|
||||
connect(this, &Renderer::renderScheduled, client->client(), static_cast<void (Client::*)(const QRect&)>(&Client::addRepaint));
|
||||
connect(this, &Renderer::renderScheduled, client->client(), static_cast<void (AbstractClient::*)(const QRect&)>(&AbstractClient::addRepaint));
|
||||
}
|
||||
|
||||
SceneQPainterDecorationRenderer::~SceneQPainterDecorationRenderer() = default;
|
||||
|
|
|
@ -1173,7 +1173,7 @@ SceneXRenderDecorationRenderer::SceneXRenderDecorationRenderer(Decoration::Decor
|
|||
: Renderer(client)
|
||||
, m_gc(XCB_NONE)
|
||||
{
|
||||
connect(this, &Renderer::renderScheduled, client->client(), static_cast<void (Client::*)(const QRect&)>(&Client::addRepaint));
|
||||
connect(this, &Renderer::renderScheduled, client->client(), static_cast<void (AbstractClient::*)(const QRect&)>(&AbstractClient::addRepaint));
|
||||
for (int i = 0; i < int(DecorationPart::Count); ++i) {
|
||||
m_pixmaps[i] = XCB_PIXMAP_NONE;
|
||||
m_pictures[i] = nullptr;
|
||||
|
|
Loading…
Reference in a new issue