mirror of
https://github.com/0intro/wmii
synced 2024-11-28 08:33:30 +03:00
Fix witray corner case. Closes issue #246.
This commit is contained in:
parent
9ad3690ed9
commit
e8d9e73d15
@ -28,8 +28,7 @@ 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,7 +61,8 @@ client_cleanup(XEmbed *e) {
|
|||||||
Client *c;
|
Client *c;
|
||||||
|
|
||||||
c = e->w->aux;
|
c = e->w->aux;
|
||||||
destroywindow(c->indicator);
|
if (c->indicator)
|
||||||
|
destroywindow(c->indicator);
|
||||||
|
|
||||||
for(cp=&tray.clients; *cp; cp=&(*cp)->next)
|
for(cp=&tray.clients; *cp; cp=&(*cp)->next)
|
||||||
if(*cp == c) {
|
if(*cp == c) {
|
||||||
|
Loading…
Reference in New Issue
Block a user