X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fclient.hh;h=e66712c43de3f8ecc3491aa08eef921ed9e5ff70;hb=f06b9449333e3bb53c169af91ba5eb85b44b2dc5;hp=d43984cbff9b1cb9a3cb9382081f9fdf4447568e;hpb=9e894362082b9cfe3d6169f85cabdd3fc3c04baa;p=chaz%2Fopenbox diff --git a/src/client.hh b/src/client.hh index d43984cb..e66712c4 100644 --- a/src/client.hh +++ b/src/client.hh @@ -431,8 +431,22 @@ private: /*! @param fs true if the window should be made fullscreen; false if it should be returned to normal state. + @param savearea true to have the client's current size and position saved; + otherwise, they are not. You should not save when mapping a + new window that is set to fullscreen. */ - void fullscreen(bool fs); + void fullscreen(bool fs, bool savearea); + + //! Maximize or unmaximize the client window + /*! + @param max true if the window should be maximized; false if it should be + returned to normal size. + @param dir 0 to set both horz and vert, 1 to set horz, 2 to set vert. + @param savearea true to have the client's current size and position saved; + otherwise, they are not. You should not save when mapping a + new window that is set to fullscreen. + */ + void maximize(bool max, int dir, bool savearea); //! Internal version of the Client::move function /*! @@ -603,8 +617,10 @@ BB @param window The window id that the Client class should handle //! Returns the client's strut definition inline const otk::Strut &strut() const { return _strut; } - //! Move the client window + //! Move the window (actually, its frame) to a position. /*! + This moves the window so that the top-left corner of its frame will be at + the position specified. @param x The X coordinate to move to. @param y The Y coordinate to move to. */ @@ -619,6 +635,13 @@ BB @param window The window id that the Client class should handle */ void resize(Corner anchor, int w, int h); + //! Reapplies the maximized state to the window + /*! + Use this to make the window readjust its maximized size to new + surroundings (struts, etc). + */ + void remaximize(); + //! Choose a mask of decorations to not display on the client /*! Pass a value of 0 to the function to turn all decorations back on. Note