]> Dogcows Code - chaz/openbox/commitdiff
provide the strut for the frame's size instead of an area rect
authorDana Jansens <danakj@orodu.net>
Fri, 17 Jan 2003 07:12:21 +0000 (07:12 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 17 Jan 2003 07:12:21 +0000 (07:12 +0000)
src/frame.hh

index 5da88902695a44569af15f2f2ff75b04e0d31e27..3937afc21d3c9112d9d7776d97c1cc6360b41d7a 100644 (file)
@@ -75,13 +75,8 @@ 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;
-  }
+  //! Returns the size of the frame on each side of the client
+  const otk::Strut& size() const { return _size; }
   
   //! Set the style to decorate the frame with
   virtual void setStyle(otk::Style *style);
This page took 0.02153 seconds and 4 git commands to generate.