Set actual state of master area factor
This commit is contained in:
parent
20c9e8927e
commit
d62c1b94ea
|
@ -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]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue