From fdaba22635a3ccf7e86e724f7e775689b9754282 Mon Sep 17 00:00:00 2001 From: markt Date: Thu, 4 Jan 2007 23:36:06 +0000 Subject: random attempt to fix an aMSN bug --- src/SystemTray.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SystemTray.cc b/src/SystemTray.cc index ea3e0bb..de99e66 100644 --- a/src/SystemTray.cc +++ b/src/SystemTray.cc @@ -297,6 +297,11 @@ void SystemTray::addClient(Window win) { return; } + WinClient *winclient = Fluxbox::instance()->searchWindow(win); + if (winclient && winclient->fbwindow()) + // remove client from FluxboxWindow first + winclient->fbwindow()->restore(winclient, false); + FbTk::FbWindow *traywin = new TrayWindow(win); #ifdef DEBUG -- cgit v0.11.2