mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-22 06:46:35 -04:00
fix: opensilent client should insert fstack tail
This commit is contained in:
parent
60f31cd1bf
commit
461dcb6989
1 changed files with 12 additions and 6 deletions
18
src/mango.c
18
src/mango.c
|
|
@ -1569,12 +1569,17 @@ void applyrules(Client *c) {
|
||||||
int32_t fullscreen_state_backup =
|
int32_t fullscreen_state_backup =
|
||||||
c->isfullscreen || client_wants_fullscreen(c);
|
c->isfullscreen || client_wants_fullscreen(c);
|
||||||
|
|
||||||
setmon(c, mon, newtags,
|
bool should_init_get_focus =
|
||||||
!c->isopensilent &&
|
!c->isopensilent &&
|
||||||
!(client_is_x11_popup(c) && client_should_ignore_focus(c)) &&
|
!(client_is_x11_popup(c) && client_should_ignore_focus(c)) && mon &&
|
||||||
mon &&
|
(!c->istagsilent || !newtags || newtags & mon->tagset[mon->seltags]);
|
||||||
(!c->istagsilent || !newtags ||
|
|
||||||
newtags & mon->tagset[mon->seltags]));
|
if (!should_init_get_focus) {
|
||||||
|
wl_list_remove(&c->flink);
|
||||||
|
wl_list_insert(fstack.prev, &c->flink);
|
||||||
|
}
|
||||||
|
|
||||||
|
setmon(c, mon, newtags, should_init_get_focus);
|
||||||
|
|
||||||
if (!c->isfloating) {
|
if (!c->isfloating) {
|
||||||
c->old_stack_inner_per = c->stack_inner_per;
|
c->old_stack_inner_per = c->stack_inner_per;
|
||||||
|
|
@ -4211,6 +4216,7 @@ mapnotify(struct wl_listener *listener, void *data) {
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
wl_list_insert(clients.prev, &c->link); // 尾部入栈
|
wl_list_insert(clients.prev, &c->link); // 尾部入栈
|
||||||
|
|
||||||
wl_list_insert(&fstack, &c->flink);
|
wl_list_insert(&fstack, &c->flink);
|
||||||
|
|
||||||
applyrules(c);
|
applyrules(c);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue