Add a pure virtual AbstractClient::setGeometryRestore(const QRect &)
This commit is contained in:
parent
94b5ca0d2b
commit
15f5886426
3 changed files with 10 additions and 0 deletions
|
@ -560,6 +560,7 @@ protected:
|
|||
virtual int borderTop() const;
|
||||
virtual int borderBottom() const;
|
||||
virtual void changeMaximize(bool horizontal, bool vertical, bool adjust) = 0;
|
||||
virtual void setGeometryRestore(const QRect &geo) = 0;
|
||||
void blockGeometryUpdates(bool block);
|
||||
void blockGeometryUpdates();
|
||||
void unblockGeometryUpdates();
|
||||
|
|
6
client.h
6
client.h
|
@ -495,6 +495,7 @@ protected:
|
|||
void doSetSkipTaskbar() override;
|
||||
bool belongsToDesktop() const override;
|
||||
bool isActiveFullScreen() const override;
|
||||
void setGeometryRestore(const QRect &geo) override;
|
||||
|
||||
private Q_SLOTS:
|
||||
void delayedSetShortcut();
|
||||
|
@ -812,6 +813,11 @@ inline QRect Client::geometryRestore() const
|
|||
return geom_restore;
|
||||
}
|
||||
|
||||
inline void Client::setGeometryRestore(const QRect &geo)
|
||||
{
|
||||
geom_restore = geo;
|
||||
}
|
||||
|
||||
inline MaximizeMode Client::maximizeMode() const
|
||||
{
|
||||
return max_mode;
|
||||
|
|
|
@ -123,6 +123,9 @@ protected:
|
|||
void doSetActive() override;
|
||||
Layer layerForDock() const override;
|
||||
void changeMaximize(bool horizontal, bool vertical, bool adjust) override;
|
||||
void setGeometryRestore(const QRect &geo) override {
|
||||
m_geomMaximizeRestore = geo;
|
||||
}
|
||||
|
||||
private Q_SLOTS:
|
||||
void clientFullScreenChanged(bool fullScreen);
|
||||
|
|
Loading…
Reference in a new issue