From f1e492da01498d6c0d84e81b166f1c3b86b142e7 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Thu, 28 Aug 2003 13:44:58 +0000 Subject: fixed resize after client death --- src/SystemTray.cc | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/SystemTray.cc b/src/SystemTray.cc index e282a76..76bac85 100644 --- a/src/SystemTray.cc +++ b/src/SystemTray.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: SystemTray.cc,v 1.3 2003/08/27 00:11:24 fluxgen Exp $ +// $Id: SystemTray.cc,v 1.4 2003/08/28 13:44:58 fluxgen Exp $ #include "SystemTray.hh" @@ -30,7 +30,6 @@ #include -#include #include using namespace std; @@ -155,7 +154,7 @@ void SystemTray::show() { } unsigned int SystemTray::width() const { - return m_clients.size()*height(); //*m_tray_width; + return m_clients.size()*height(); } unsigned int SystemTray::height() const { @@ -214,16 +213,19 @@ void SystemTray::addClient(Window win) { #ifdef DEBUG cerr<<__FILE__<<"("<<__FUNCTION__<<"): 0x"<add(*this, win); + FbTk::EventManager::instance()->addParent(*this, window()); XChangeSaveSet(FbTk::App::instance()->display(), win, SetModeInsert); traywin->reparent(m_window, 0, 0); traywin->show(); resize(width(), m_clients.size()*height()); - + rearrangeClients(); } @@ -235,12 +237,16 @@ void SystemTray::removeClient(Window win) { #ifdef DEBUG cerr<<__FILE__<<"("<<__FUNCTION__<<"): 0x"<