diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-17 07:10:52 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-17 07:10:52 +0000 |
| commit | 940247c3e5639751e6bd5de0fab27af17a889d25 (patch) | |
| tree | 6df301e4afb2fee2d925138199d008640345eba9 /src/frame.hh | |
| parent | 5cc40ecc8f4ae3c875d61b3e844c22c89c019c58 (diff) | |
make window placement not go off screen at all
Diffstat (limited to 'src/frame.hh')
| -rw-r--r-- | src/frame.hh | 11 |
1 files changed, 8 insertions, 3 deletions
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); |
