From 88e097ec16ae84292ca625ce43067b510423b289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 22 Oct 2015 15:47:02 +0200 Subject: [PATCH] Move signals clientFooUserMovedResized to AbstractClient This also changes the argument to carry the sending AbstractClient instead of Client. --- abstract_client.h | 3 +++ client.h | 3 --- effects.cpp | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/abstract_client.h b/abstract_client.h index 29199179a2..ee84aaf623 100644 --- a/abstract_client.h +++ b/abstract_client.h @@ -498,6 +498,9 @@ Q_SIGNALS: void quickTileModeChanged(); void moveResizedChanged(); void moveResizeCursorChanged(Qt::CursorShape); + void clientStartUserMovedResized(KWin::AbstractClient*); + void clientStepUserMovedResized(KWin::AbstractClient *, const QRect&); + void clientFinishUserMovedResized(KWin::AbstractClient*); protected: AbstractClient(); diff --git a/client.h b/client.h index 4b8b245a02..183c787216 100644 --- a/client.h +++ b/client.h @@ -480,9 +480,6 @@ private Q_SLOTS: Q_SIGNALS: void clientManaging(KWin::Client*); void clientFullScreenSet(KWin::Client*, bool, bool); - void clientStartUserMovedResized(KWin::Client*); - void clientStepUserMovedResized(KWin::Client *, const QRect&); - void clientFinishUserMovedResized(KWin::Client*); /** * Emitted whenever the Client's TabGroup changed. That is whenever the Client is moved to diff --git a/effects.cpp b/effects.cpp index f2bd3da837..2b13d94620 100644 --- a/effects.cpp +++ b/effects.cpp @@ -339,17 +339,17 @@ void EffectsHandlerImpl::setupClientConnections(Client* c) connect(c, static_cast(&Client::clientMaximizedStateChanged), this, &EffectsHandlerImpl::slotClientMaximized); connect(c, &Client::clientStartUserMovedResized, this, - [this](Client *c) { + [this](AbstractClient *c) { emit windowStartUserMovedResized(c->effectWindow()); } ); connect(c, &Client::clientStepUserMovedResized, this, - [this](Client *c, const QRect &geometry) { + [this](AbstractClient *c, const QRect &geometry) { emit windowStepUserMovedResized(c->effectWindow(), geometry); } ); connect(c, &Client::clientFinishUserMovedResized, this, - [this](Client *c) { + [this](AbstractClient *c) { emit windowFinishUserMovedResized(c->effectWindow()); } );