diff --git a/abstract_client.h b/abstract_client.h index 3fc66fbd59..ba57f680f5 100644 --- a/abstract_client.h +++ b/abstract_client.h @@ -397,6 +397,13 @@ public: void keepInArea(QRect area, bool partial = false); virtual QSize minSize() const; virtual QSize maxSize() const; + /// How to resize the window in order to obey constains (mainly aspect ratios) + enum Sizemode { + SizemodeAny, + SizemodeFixedW, ///< Try not to affect width + SizemodeFixedH, ///< Try not to affect height + SizemodeMax ///< Try not to make it larger in either direction + }; virtual bool hasStrut() const; diff --git a/client.h b/client.h index 4efcf7d40d..451e5157e1 100644 --- a/client.h +++ b/client.h @@ -209,13 +209,6 @@ public: void releaseWindow(bool on_shutdown = false); void destroyClient(); - /// How to resize the window in order to obey constains (mainly aspect ratios) - enum Sizemode { - SizemodeAny, - SizemodeFixedW, ///< Try not to affect width - SizemodeFixedH, ///< Try not to affect height - SizemodeMax ///< Try not to make it larger in either direction - }; QSize adjustedSize(const QSize&, Sizemode mode = SizemodeAny) const; QSize adjustedSize() const;