Move clientMaximizedStateChanged signal from Client to AbstractClient
This commit is contained in:
parent
239104b4f4
commit
034276af36
7 changed files with 9 additions and 8 deletions
|
@ -372,6 +372,8 @@ Q_SIGNALS:
|
|||
void clientUnminimized(KWin::AbstractClient* client, bool animate);
|
||||
void paletteChanged(const QPalette &p);
|
||||
void captionChanged();
|
||||
void clientMaximizedStateChanged(KWin::AbstractClient*, MaximizeMode);
|
||||
void clientMaximizedStateChanged(KWin::AbstractClient* c, bool h, bool v);
|
||||
|
||||
protected:
|
||||
AbstractClient();
|
||||
|
|
|
@ -171,7 +171,7 @@ Client::Client()
|
|||
ready_for_painting = false; // wait for first damage or sync reply
|
||||
|
||||
connect(this, &Client::geometryShapeChanged, this, &Client::geometryChanged);
|
||||
auto signalMaximizeChanged = static_cast<void (Client::*)(KWin::Client*, MaximizeMode)>(&Client::clientMaximizedStateChanged);
|
||||
auto signalMaximizeChanged = static_cast<void (Client::*)(KWin::AbstractClient*, MaximizeMode)>(&Client::clientMaximizedStateChanged);
|
||||
connect(this, signalMaximizeChanged, this, &Client::geometryChanged);
|
||||
connect(this, &Client::clientStepUserMovedResized, this, &Client::geometryChanged);
|
||||
connect(this, &Client::clientStartUserMovedResized, this, &Client::moveResizedChanged);
|
||||
|
|
2
client.h
2
client.h
|
@ -559,8 +559,6 @@ private Q_SLOTS:
|
|||
Q_SIGNALS:
|
||||
void clientManaging(KWin::Client*);
|
||||
void clientFullScreenSet(KWin::Client*, bool, bool);
|
||||
void clientMaximizedStateChanged(KWin::Client*, MaximizeMode);
|
||||
void clientMaximizedStateChanged(KWin::Client* c, bool h, bool v);
|
||||
void clientStartUserMovedResized(KWin::Client*);
|
||||
void clientStepUserMovedResized(KWin::Client *, const QRect&);
|
||||
void clientFinishUserMovedResized(KWin::Client*);
|
||||
|
|
|
@ -339,7 +339,7 @@ EffectsHandlerImpl::~EffectsHandlerImpl()
|
|||
void EffectsHandlerImpl::setupClientConnections(Client* c)
|
||||
{
|
||||
connect(c, &Client::windowClosed, this, &EffectsHandlerImpl::slotWindowClosed);
|
||||
connect(c, static_cast<void (Client::*)(KWin::Client*, MaximizeMode)>(&Client::clientMaximizedStateChanged),
|
||||
connect(c, static_cast<void (Client::*)(KWin::AbstractClient*, MaximizeMode)>(&Client::clientMaximizedStateChanged),
|
||||
this, &EffectsHandlerImpl::slotClientMaximized);
|
||||
connect(c, &Client::clientStartUserMovedResized, this,
|
||||
[this](Client *c) {
|
||||
|
@ -540,7 +540,7 @@ void EffectsHandlerImpl::startPaint()
|
|||
m_currentPaintEffectFrameIterator = m_activeEffects.constBegin();
|
||||
}
|
||||
|
||||
void EffectsHandlerImpl::slotClientMaximized(KWin::Client *c, MaximizeMode maxMode)
|
||||
void EffectsHandlerImpl::slotClientMaximized(KWin::AbstractClient *c, MaximizeMode maxMode)
|
||||
{
|
||||
bool horizontal = false;
|
||||
bool vertical = false;
|
||||
|
|
|
@ -237,7 +237,7 @@ protected Q_SLOTS:
|
|||
void slotShellClientShown(KWin::Toplevel*);
|
||||
void slotUnmanagedShown(KWin::Toplevel*);
|
||||
void slotWindowClosed(KWin::Toplevel *c);
|
||||
void slotClientMaximized(KWin::Client *c, MaximizeMode maxMode);
|
||||
void slotClientMaximized(KWin::AbstractClient *c, MaximizeMode maxMode);
|
||||
void slotOpacityChanged(KWin::Toplevel *t, qreal oldOpacity);
|
||||
void slotClientModalityChanged();
|
||||
void slotGeometryShapeChanged(KWin::Toplevel *t, const QRect &old);
|
||||
|
|
|
@ -248,7 +248,8 @@ void WorkspaceWrapper::setupClientConnections(KWin::Client *client)
|
|||
connect(client, &Client::clientUnminimized, this, &WorkspaceWrapper::clientUnminimized);
|
||||
connect(client, SIGNAL(clientManaging(KWin::Client*)), SIGNAL(clientManaging(KWin::Client*)));
|
||||
connect(client, SIGNAL(clientFullScreenSet(KWin::Client*,bool,bool)), SIGNAL(clientFullScreenSet(KWin::Client*,bool,bool)));
|
||||
connect(client, SIGNAL(clientMaximizedStateChanged(KWin::Client*,bool,bool)), SIGNAL(clientMaximizeSet(KWin::Client*,bool,bool)));
|
||||
connect(client, static_cast<void (Client::*)(KWin::AbstractClient*, bool, bool)>(&Client::clientMaximizedStateChanged),
|
||||
this, &WorkspaceWrapper::clientMaximizeSet);
|
||||
}
|
||||
|
||||
void WorkspaceWrapper::showOutline(const QRect &geometry)
|
||||
|
|
|
@ -96,7 +96,7 @@ Q_SIGNALS:
|
|||
void clientMinimized(KWin::AbstractClient *client);
|
||||
void clientUnminimized(KWin::AbstractClient *client);
|
||||
void clientRestored(KWin::Client *client);
|
||||
void clientMaximizeSet(KWin::Client *client, bool h, bool v);
|
||||
void clientMaximizeSet(KWin::AbstractClient *client, bool h, bool v);
|
||||
void killWindowCalled(KWin::Client *client);
|
||||
void clientActivated(KWin::AbstractClient *client);
|
||||
void clientFullScreenSet(KWin::Client *client, bool fullScreen, bool user);
|
||||
|
|
Loading…
Reference in a new issue