DecoratedClientImpl::client returns AbstractClient* instead of Client*

This commit is contained in:
Martin Gräßlin 2015-12-03 17:12:25 +01:00
parent ae28c2499d
commit 1758db337f
4 changed files with 6 additions and 5 deletions

View file

@ -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;
};

View file

@ -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;

View file

@ -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;

View file

@ -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;