mirror of
https://github.com/0intro/wmii
synced 2024-12-17 00:52: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) {
|
||||
Page *p;
|
||||
Area *a = c->frame->area;
|
||||
Frame *f = c->frame;
|
||||
Area *a = f ? f->area : nil;
|
||||
if (a) {
|
||||
a->layout->detach(a, c);
|
||||
cext_detach_item(&a->clients, c);
|
||||
}
|
||||
if (c->destroyed)
|
||||
destroy_client(c);
|
||||
if ((p = get_sel_page()))
|
||||
|
Loading…
Reference in New Issue
Block a user