X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fframe.hh;h=5da88902695a44569af15f2f2ff75b04e0d31e27;hb=940247c3e5639751e6bd5de0fab27af17a889d25;hp=7831284ea066361b0a8c94836a057160ffa8fec1;hpb=ef02a0c8ae65f169157c90064a335303e964a4c1;p=chaz%2Fopenbox diff --git a/src/frame.hh b/src/frame.hh index 7831284e..5da88902 100644 --- a/src/frame.hh +++ b/src/frame.hh @@ -40,9 +40,6 @@ private: Client *_client; const otk::ScreenInfo *_screen; - //! The style to use for size and display the decorations - otk::Style *_style; - //! The size of the frame on each side of the client window otk::Strut _size; @@ -78,6 +75,14 @@ public: //! Destroys the Frame object virtual ~Frame(); + otk::Rect area() const { + otk::Rect a(_client->area()); + a.setRect(a.x() - _size.left, a.y() - _size.top, + a.width() + _size.left + _size.right, + a.height() + _size.top + _size.bottom); + return a; + } + //! Set the style to decorate the frame with virtual void setStyle(otk::Style *style);