X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fframe.hh;h=e1647a991e2e7243722d5d2a61617ecb764ef56b;hb=9860b76c50e5ecacc85921539058eab4c655c38d;hp=ff6a21ad0becd3ab9db8d8f74fbdc440b6adf4c4;hpb=d8de17b58e2fee1414e0970bc372b661abe259a6;p=chaz%2Fopenbox diff --git a/src/frame.hh b/src/frame.hh index ff6a21ad..e1647a99 100644 --- a/src/frame.hh +++ b/src/frame.hh @@ -25,6 +25,9 @@ namespace ob { //! Holds and decorates a frame around an OBClient (client window) /*! + The frame is responsible for calling XSelectInput on the client window's new + parent with the SubstructureRedirectMask so that structure events for the + client are sent to the window manager. */ class OBFrame : public otk::OtkWidget { private: @@ -37,6 +40,9 @@ private: //! The size of the frame on each side of the client window otk::Strut _size; + //! The size of the frame on each side of the client window inside the border + otk::Strut _innersize; + // decoration windows otk::OtkFocusWidget _plate; // sits entirely under the client window otk::OtkFocusWidget _titlebar; @@ -85,6 +91,10 @@ public: //! Applies gravity for the client's gravity, moving the frame to the //! appropriate place void applyGravity(); + + //! Reversely applies gravity for the client's gravity, moving the frame so + //! that the client is in its pre-gravity position + void reverseGravity(); }; }