aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/SystemTray.cc5
1 files changed, 5 insertions, 0 deletions
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) {
297 return; 297 return;
298 } 298 }
299 299
300 WinClient *winclient = Fluxbox::instance()->searchWindow(win);
301 if (winclient && winclient->fbwindow())
302 // remove client from FluxboxWindow first
303 winclient->fbwindow()->restore(winclient, false);
304
300 FbTk::FbWindow *traywin = new TrayWindow(win); 305 FbTk::FbWindow *traywin = new TrayWindow(win);
301 306
302#ifdef DEBUG 307#ifdef DEBUG