Set actual state of master area factor

This commit is contained in:
Alex Kotov 2021-11-18 21:44:59 +05:00
parent 20c9e8927e
commit d62c1b94ea
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 5 additions and 1 deletions

View File

@ -1724,7 +1724,8 @@ setmfact(const Arg *arg)
{
if (!arg) return;
unit_inc_master_area_factor(
// actual state
selmon->mfact = unit_inc_master_area_factor(
selmon->pertag->units[selmon->pertag->curtag],
arg->f
);
@ -1979,6 +1980,7 @@ toggleview(const Arg *arg)
selmon->lt[selmon->sellt] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt];
selmon->lt[selmon->sellt^1] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt^1];
// actual state
// TODO: maybe also set selmon->show_bar here to fix issue #7?
selmon->mfact = unit_get_master_area_factor(selmon->pertag->units[selmon->pertag->curtag]);
@ -2330,6 +2332,7 @@ view(const Arg *arg)
selmon->lt[selmon->sellt] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt];
selmon->lt[selmon->sellt ^ 1] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt ^ 1];
// actual state
// TODO: maybe also set selmon->show_bar here to fix issue #7?
selmon->mfact = unit_get_master_area_factor(selmon->pertag->units[selmon->pertag->curtag]);
@ -2377,6 +2380,7 @@ viewrel(const Arg *arg)
selmon->lt[selmon->sellt] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt];
selmon->lt[selmon->sellt ^ 1] = selmon->pertag->ltidxs[selmon->pertag->curtag][selmon->sellt ^ 1];
// actual state
// TODO: maybe also set selmon->show_bar here to fix issue #7?
selmon->mfact = unit_get_master_area_factor(selmon->pertag->units[selmon->pertag->curtag]);