*fix* unmap traywin (part of issue 205)

git-svn-id: http://tint2.googlecode.com/svn/trunk@357 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
Andreas.Fink85 2010-01-16 15:42:02 +00:00
parent 178b33a145
commit 6051ae447f

View file

@ -464,7 +464,7 @@ void remove_icon(TrayWindow *traywin)
error = FALSE;
old = XSetErrorHandler(window_error_handler);
if (!traywin->hide)
XUnmapWindow(server.dsp, traywin->id);
XUnmapWindow(server.dsp, traywin->tray_id);
XReparentWindow(server.dsp, traywin->tray_id, server.root_win, 0, 0);
XDestroyWindow(server.dsp, traywin->id);
XSync(server.dsp, False);