Apply nmaxmaster patch (dwm-nmaxmaster-20210124-a04bfa8.diff) with pertag fix
This commit is contained in:
parent
ce6af58a07
commit
b245ed649d
|
@ -6,6 +6,7 @@ Applied patches
|
||||||
* focusonclick
|
* focusonclick
|
||||||
* hide_vacant_tags
|
* hide_vacant_tags
|
||||||
* movestack
|
* movestack
|
||||||
|
* nmaxmaster
|
||||||
* pertag
|
* pertag
|
||||||
* smartborders
|
* smartborders
|
||||||
* statusallmons
|
* statusallmons
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
static const unsigned int borderpx = 2; /* border pixel of windows */
|
static const unsigned int borderpx = 2; /* border pixel of windows */
|
||||||
static const int showbar = 1; /* 0 means no bar */
|
static const int showbar = 1; /* 0 means no bar */
|
||||||
static const int topbar = 1; /* 0 means bottom bar */
|
static const int topbar = 1; /* 0 means bottom bar */
|
||||||
|
static const int nmaxmaster = 3; /* maximum number of clients allowed in master area */
|
||||||
static const char *fonts[] = { "monospace:size=10" };
|
static const char *fonts[] = { "monospace:size=10" };
|
||||||
static const char dmenufont[] = "monospace:size=10";
|
static const char dmenufont[] = "monospace:size=10";
|
||||||
static const char col_gray1[] = "#222222";
|
static const char col_gray1[] = "#222222";
|
||||||
|
|
2
dwm.c
2
dwm.c
|
@ -1180,7 +1180,7 @@ grabkeys(void)
|
||||||
void
|
void
|
||||||
incnmaster(const Arg *arg)
|
incnmaster(const Arg *arg)
|
||||||
{
|
{
|
||||||
selmon->nmaster = selmon->pertag->nmasters[selmon->pertag->curtag] = MAX(selmon->nmaster + arg->i, 0);
|
selmon->nmaster = selmon->pertag->nmasters[selmon->pertag->curtag] = MIN(MAX(selmon->nmaster + arg->i, 0), nmaxmaster);
|
||||||
arrange(selmon);
|
arrange(selmon);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue