mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-04-03 07:15:44 -04:00
opt: avoid stack inner per change when switch tty
This commit is contained in:
parent
b0f839468c
commit
a4faf2c494
1 changed files with 2 additions and 1 deletions
|
|
@ -5810,7 +5810,8 @@ void updatemons(struct wl_listener *listener, void *data) {
|
||||||
if (selmon && selmon->wlr_output->enabled) {
|
if (selmon && selmon->wlr_output->enabled) {
|
||||||
wl_list_for_each(c, &clients, link) {
|
wl_list_for_each(c, &clients, link) {
|
||||||
if (!c->mon && client_surface(c)->mapped) {
|
if (!c->mon && client_surface(c)->mapped) {
|
||||||
client_change_mon(c, selmon);
|
c->mon = selmon;
|
||||||
|
reset_foreign_tolevel(c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
focusclient(focustop(selmon), 1);
|
focusclient(focustop(selmon), 1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue