mirror of
https://github.com/0intro/wmii
synced 2024-11-24 06:39:47 +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);
|
||||
if(traperrors(false)) {
|
||||
fprint(2, "client_manage(0x%ulx): Caught error.\n", w);
|
||||
if(c->xembed)
|
||||
xembed_disown(c->xembed);
|
||||
xembed_disown(c->xembed);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -62,7 +61,8 @@ client_cleanup(XEmbed *e) {
|
||||
Client *c;
|
||||
|
||||
c = e->w->aux;
|
||||
destroywindow(c->indicator);
|
||||
if (c->indicator)
|
||||
destroywindow(c->indicator);
|
||||
|
||||
for(cp=&tray.clients; *cp; cp=&(*cp)->next)
|
||||
if(*cp == c) {
|
||||
|
Loading…
Reference in New Issue
Block a user