fix calculating the width / height of SystemTray (closes #3150939)

This commit is contained in:
Mathias Gumz 2011-02-24 15:00:22 +01:00
parent 39871695cf
commit 35753c7c3f

View file

@ -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 {