mirror of
https://github.com/0intro/wmii
synced 2024-12-17 09:02:37 +03:00
fixed serious bug in detach_client, if detached client
This commit is contained in:
parent
3bbcf9f569
commit
1d92df0536
@ -333,9 +333,12 @@ void attach_client(Client * c)
|
|||||||
|
|
||||||
void detach_client(Client *c) {
|
void detach_client(Client *c) {
|
||||||
Page *p;
|
Page *p;
|
||||||
Area *a = c->frame->area;
|
Frame *f = c->frame;
|
||||||
a->layout->detach(a, c);
|
Area *a = f ? f->area : nil;
|
||||||
cext_detach_item(&a->clients, c);
|
if (a) {
|
||||||
|
a->layout->detach(a, c);
|
||||||
|
cext_detach_item(&a->clients, c);
|
||||||
|
}
|
||||||
if (c->destroyed)
|
if (c->destroyed)
|
||||||
destroy_client(c);
|
destroy_client(c);
|
||||||
if ((p = get_sel_page()))
|
if ((p = get_sel_page()))
|
||||||
|
Loading…
Reference in New Issue
Block a user