Commit 15f58864 authored by Martin Flöser's avatar Martin Flöser

Add a pure virtual AbstractClient::setGeometryRestore(const QRect &)

parent 94b5ca0d
......@@ -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();
......@@ -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);
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