Fix witray corner case. Closes issue #246.

This commit is contained in:
Kris Maglione 2011-10-20 05:29:03 -04:00
parent 9ad3690ed9
commit e8d9e73d15

View File

@ -28,7 +28,6 @@ client_manage(XWindow w) {
c->xembed = xembed_swallow(tray.win, &c->w, client_cleanup); c->xembed = xembed_swallow(tray.win, &c->w, client_cleanup);
if(traperrors(false)) { if(traperrors(false)) {
fprint(2, "client_manage(0x%ulx): Caught error.\n", w); fprint(2, "client_manage(0x%ulx): Caught error.\n", w);
if(c->xembed)
xembed_disown(c->xembed); xembed_disown(c->xembed);
return; return;
} }
@ -62,6 +61,7 @@ client_cleanup(XEmbed *e) {
Client *c; Client *c;
c = e->w->aux; c = e->w->aux;
if (c->indicator)
destroywindow(c->indicator); destroywindow(c->indicator);
for(cp=&tray.clients; *cp; cp=&(*cp)->next) for(cp=&tray.clients; *cp; cp=&(*cp)->next)