Move signals clientFooUserMovedResized to AbstractClient

This also changes the argument to carry the sending AbstractClient
instead of Client.
This commit is contained in:
Martin Gräßlin 2015-10-22 15:47:02 +02:00
parent dc04cdef64
commit 88e097ec16
3 changed files with 6 additions and 6 deletions

View file

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

View file

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

View file

@ -339,17 +339,17 @@ void EffectsHandlerImpl::setupClientConnections(Client* c)
connect(c, static_cast<void (Client::*)(KWin::AbstractClient*, MaximizeMode)>(&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());
}
);