diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2011-02-24 14:00:22 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2011-02-24 14:00:22 (GMT) |
commit | 35753c7c3f7ad8fb10bd0853359f770c822bf1f1 (patch) | |
tree | d5425a70f5d1fc9d5aa16cc82228621c4eb12f21 /src | |
parent | 39871695cf9a31340dc6047d09558607cd040aa5 (diff) | |
download | fluxbox_paul-35753c7c3f7ad8fb10bd0853359f770c822bf1f1.zip fluxbox_paul-35753c7c3f7ad8fb10bd0853359f770c822bf1f1.tar.bz2 |
fix calculating the width / height of SystemTray (closes #3150939)
Diffstat (limited to 'src')
-rw-r--r-- | src/SystemTray.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SystemTray.cc b/src/SystemTray.cc index c145351..a8c4d5d 100644 --- a/src/SystemTray.cc +++ b/src/SystemTray.cc | |||
@@ -279,14 +279,14 @@ unsigned int SystemTray::width() const { | |||
279 | if (orientation() == FbTk::ROT90 || orientation() == FbTk::ROT270) | 279 | if (orientation() == FbTk::ROT90 || orientation() == FbTk::ROT270) |
280 | return m_window.width(); | 280 | return m_window.width(); |
281 | 281 | ||
282 | return m_num_visible_clients * (height() - 2 * m_theme->border().width()); | 282 | return m_num_visible_clients * (height() + 2 * m_theme->border().width()); |
283 | } | 283 | } |
284 | 284 | ||
285 | unsigned int SystemTray::height() const { | 285 | unsigned int SystemTray::height() const { |
286 | if (orientation() == FbTk::ROT0 || orientation() == FbTk::ROT180) | 286 | if (orientation() == FbTk::ROT0 || orientation() == FbTk::ROT180) |
287 | return m_window.height(); | 287 | return m_window.height(); |
288 | 288 | ||
289 | return m_num_visible_clients * (width() - 2 * m_theme->border().width()); | 289 | return m_num_visible_clients * (width() + 2 * m_theme->border().width()); |
290 | } | 290 | } |
291 | 291 | ||
292 | unsigned int SystemTray::borderWidth() const { | 292 | unsigned int SystemTray::borderWidth() const { |