Commit a421f546 authored by Martin Flöser's avatar Martin Flöser

Move functionality of Client::updateLayer to AbstractClient

With transient support in AbstractClient we can provide the
functionality in AbstractClient.
parent b1993567
......@@ -190,6 +190,15 @@ void AbstractClient::doSetActive()
}
void AbstractClient::updateLayer()
{
StackingUpdatesBlocker blocker(workspace());
invalidateLayer(); // invalidate, will be updated when doing restacking
for (auto it = transients().constBegin(),
end = transients().constEnd(); it != end; ++it)
(*it)->updateLayer();
}
void AbstractClient::invalidateLayer()
{
}
......
......@@ -505,6 +505,8 @@ protected:
**/
void removeTransientFromList(AbstractClient* cl);
virtual void invalidateLayer();
private:
void handlePaletteChange();
QSharedPointer<TabBox::TabBoxClientImpl> m_tabBoxClient;
......
......@@ -267,7 +267,6 @@ public:
virtual Layer layer() const;
Layer belongsToLayer() const;
void invalidateLayer();
void updateLayer() override;
int sessionStackingOrder() const;
......@@ -521,6 +520,7 @@ protected:
void doMinimize() override;
void doSetSkipPager() override;
void doSetSkipTaskbar() override;
void invalidateLayer() override;
private Q_SLOTS:
void delayedSetShortcut();
......
......@@ -867,11 +867,7 @@ void Client::updateLayer()
{
if (layer() == belongsToLayer())
return;
StackingUpdatesBlocker blocker(workspace());
invalidateLayer(); // invalidate, will be updated when doing restacking
for (auto it = transients().constBegin(),
end = transients().constEnd(); it != end; ++it)
(*it)->updateLayer();
AbstractClient::updateLayer();
}
bool rec_checkTransientOnTop(const QList<AbstractClient*> &transients, const Client *topmost)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment