fix: get error root_client in scroller layout
This commit is contained in:
3
maomao.c
3
maomao.c
@@ -1350,7 +1350,6 @@ swallow(Client *c, Client *w)
|
|||||||
c->ismaxmizescreen = w->ismaxmizescreen;
|
c->ismaxmizescreen = w->ismaxmizescreen;
|
||||||
c->tags = w->tags;
|
c->tags = w->tags;
|
||||||
c->geom = w->geom;
|
c->geom = w->geom;
|
||||||
c->mon = w->mon;
|
|
||||||
c->scroller_proportion = w->scroller_proportion;
|
c->scroller_proportion = w->scroller_proportion;
|
||||||
wl_list_insert(&w->link, &c->link);
|
wl_list_insert(&w->link, &c->link);
|
||||||
wl_list_insert(&w->flink, &c->flink);
|
wl_list_insert(&w->flink, &c->flink);
|
||||||
@@ -1363,8 +1362,6 @@ swallow(Client *c, Client *w)
|
|||||||
|
|
||||||
if(!c->foreign_toplevel && c->mon)
|
if(!c->foreign_toplevel && c->mon)
|
||||||
add_foreign_toplevel(c);
|
add_foreign_toplevel(c);
|
||||||
|
|
||||||
focusclient(c, true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void // 0.5
|
void // 0.5
|
||||||
|
|||||||
Reference in New Issue
Block a user