mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-11 05:34:21 -04:00
opt: reset size per when toggleview
This commit is contained in:
parent
36fb9c017d
commit
a607d63ae7
1 changed files with 6 additions and 0 deletions
|
|
@ -1436,6 +1436,7 @@ int32_t toggleview(const Arg *arg) {
|
|||
|
||||
uint32_t newtagset;
|
||||
uint32_t target;
|
||||
Client *c = NULL;
|
||||
|
||||
target = arg->ui == 0 ? ~0 & TAGMASK : arg->ui;
|
||||
|
||||
|
|
@ -1444,6 +1445,11 @@ int32_t toggleview(const Arg *arg) {
|
|||
if (newtagset) {
|
||||
selmon->tagset[selmon->seltags] = newtagset;
|
||||
focusclient(focustop(selmon), 1);
|
||||
wl_list_for_each(c, &clients, link) {
|
||||
if (VISIBLEON(c, selmon) && ISTILED(c)) {
|
||||
set_size_per(selmon, c);
|
||||
}
|
||||
}
|
||||
arrange(selmon, false, false);
|
||||
}
|
||||
printstatus();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue