X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fsystray%2Fsystraybar.c;h=85431967d8128266aa48c9757859863bf1ee8d34;hb=b9ceca0af9fbad70fe14f087ccdda72d8c7e7cf6;hp=661b2c6a5ed035bca9d0a3153193113880deff19;hpb=83f23be9b6b5c2f1ae39d7d045353036b07f872d;p=chaz%2Ftint2 diff --git a/src/systray/systraybar.c b/src/systray/systraybar.c index 661b2c6..8543196 100644 --- a/src/systray/systraybar.c +++ b/src/systray/systraybar.c @@ -379,7 +379,6 @@ void remove_icon(TrayWindow *traywin) // remove from our list systray.list_icons = g_slist_remove(systray.list_icons, traywin); - g_free(traywin); systray.area.resize = 1; systray.area.redraw = 1; //printf("remove_icon id %lx, %d\n", traywin->id); @@ -394,6 +393,7 @@ void remove_icon(TrayWindow *traywin) XReparentWindow(server.dsp, traywin->id, server.root_win, 0, 0); XSync(server.dsp, False); XSetErrorHandler(old); + g_free(traywin); // changed in systray force resize on panel Panel *panel = systray.area.panel;