From 6946aded1be509c20fd985e2ad0b273c2d4eb967 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Wed, 1 Sep 2004 00:05:52 +0000 Subject: fixed restart issue + sending resize signal when ConfigureNotify --- src/SystemTray.cc | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/SystemTray.cc b/src/SystemTray.cc index 61eb95a..af34552 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.13 2004/08/31 23:18:29 fluxgen Exp $ +// $Id: SystemTray.cc,v 1.14 2004/09/01 00:05:52 fluxgen Exp $ #include "SystemTray.hh" @@ -121,8 +121,12 @@ SystemTray::SystemTray(const FbTk::FbWindow &parent): // get selection owner and see if it's free Atom tray_atom = XInternAtom(disp, atom_name.c_str(), False); Window owner = XGetSelectionOwner(disp, tray_atom); - if (owner != 0) + if (owner != 0) { +#ifdef DEBUG + cerr<<__FILE__<<"("<<__FUNCTION__<<"): can't set owner!"<add(*this, win); @@ -272,12 +278,10 @@ void SystemTray::addClient(Window win) { traywin->reparent(m_window, 0, 0); traywin->show(); - if (m_clients.empty()) - show(); + #ifdef DEBUG - cerr<<"number of clients = "<