aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2011-02-24 14:00:22 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2011-02-24 14:00:22 (GMT)
commit35753c7c3f7ad8fb10bd0853359f770c822bf1f1 (patch)
treed5425a70f5d1fc9d5aa16cc82228621c4eb12f21 /src
parent39871695cf9a31340dc6047d09558607cd040aa5 (diff)
downloadfluxbox_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.cc4
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
285unsigned int SystemTray::height() const { 285unsigned 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
292unsigned int SystemTray::borderWidth() const { 292unsigned int SystemTray::borderWidth() const {