diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-04-14 09:39:14 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-04-14 09:39:14 +0000 |
| commit | d00ef145828941dc15c31bd7c3fc2f69f29c2955 (patch) | |
| tree | 6324e064283f8d7581015148301040fb817a48f2 /src/Window.h | |
| parent | bb1a97327b08fa5c1b8025083fc39498b3256c84 (diff) | |
made shaded windows snap properly at their bottom, using their shaded height.
window.getHeight() now returns the different/correct value when a window is shaded.
Diffstat (limited to 'src/Window.h')
| -rw-r--r-- | src/Window.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/Window.h b/src/Window.h index b2f76242..f3a79e3d 100644 --- a/src/Window.h +++ b/src/Window.h @@ -111,7 +111,7 @@ private: } flags; struct _client { - OpenboxWindow *transient_for, // which window are we a transient for? + OpenboxWindow *transient_for, // which window are we a transient for? *transient; // which window is our transient? Window window, // the client's window @@ -199,7 +199,7 @@ private: unsigned int width, height, title_h, label_w, label_h, handle_h, button_w, button_h, grip_w, grip_h, mwm_border_w, border_h, border_w, - bevel_w, snap_w, snap_h; + bevel_w; } frame; protected: @@ -279,7 +279,12 @@ public: inline const int &getWindowNumber(void) const { return window_number; } inline const unsigned int &getWidth(void) const { return frame.width; } - inline const unsigned int &getHeight(void) const { return frame.height; } + inline const unsigned int &getHeight(void) const { + if (!flags.shaded) + return frame.height; + else + return frame.title_h; + } inline const unsigned int &getClientHeight(void) const { return client.height; } inline const unsigned int &getClientWidth(void) const |
