fix calculating the width / height of SystemTray (closes #3150939)
Mathias Gumz akira at fluxbox dot org
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/SystemTray.cc
→
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 {