From 35753c7c3f7ad8fb10bd0853359f770c822bf1f1 Mon Sep 17 00:00:00 2001
From: Mathias Gumz <akira at fluxbox dot org>
Date: Thu, 24 Feb 2011 15:00:22 +0100
Subject: fix calculating the width / height of SystemTray (closes #3150939)

---
 src/SystemTray.cc | 4 ++--
 1 file 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 {
     if (orientation() == FbTk::ROT90 || orientation() == FbTk::ROT270)
         return m_window.width();
 
-    return m_num_visible_clients * (height() - 2 * m_theme->border().width());
+    return m_num_visible_clients * (height() + 2 * m_theme->border().width());
 }
 
 unsigned int SystemTray::height() const {
     if (orientation() == FbTk::ROT0 || orientation() == FbTk::ROT180)
         return m_window.height();
 
-    return m_num_visible_clients * (width() - 2 * m_theme->border().width());
+    return m_num_visible_clients * (width() + 2 * m_theme->border().width());
 }
 
 unsigned int SystemTray::borderWidth() const {
-- 
cgit v0.11.2