Adjust for dwm-6.2 (sync with wip/dwm-git) - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
 (HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) changeset 640313a6f000e0e3daae2ab8a4101b1f48ce7bda
 (DIR) parent da97d19b260581b1474f438b4b505531754cb590
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Sun,  3 Feb 2019 23:06:13 
       
       Adjust for dwm-6.2 (sync with wip/dwm-git)
       
       Diffstat:
        wm/dwm/patch-config.h |  83 ++++----------------------------------------------
        1 files changed, 8 insertions(+), 75 deletions(-)
       ---
       diff -r da97d19b2605 -r 640313a6f000 wm/dwm/patch-config.h
       --- a/wm/dwm/patch-config.h     Sun Feb 03 23:05:15 2019 +0100
       +++ b/wm/dwm/patch-config.h     Sun Feb 03 23:06:13 2019 +0100
       @@ -1,12 +1,10 @@
        --- /dev/null  2015-11-09 10:41:47.000000000 +0100
        +++ config.h   2015-11-09 10:40:39.000000000 +0100
       -@@ -0,0 +1,225 @@
       +@@ -0,0 +1,158 @@
        +/* See LICENSE file for copyright and license details. */
        +
        +/* appearance */
       -+static const char *fonts[] = {
       -+      "Droid Sans Mono:size=9"
       -+};
       ++static const char *fonts[]          = { "Droid Sans Mono:size=9" };
        +static const char dmenufont[]       = "Droid Sans Mono:size=9";
        +static const char normbordercolor[] = "#777777";
        +static const char normbgcolor[]     = "#000000";
       @@ -14,6 +12,11 @@
        +static const char selbordercolor[]  = "#ffffff";
        +static const char selbgcolor[]      = "#000000";
        +static const char selfgcolor[]      = "#ffffff";
       ++static const char *colors[][3]      = {
       ++       /*               fg           bg           border   */
       ++       [SchemeNorm] = { normfgcolor, normbgcolor, normbordercolor },
       ++       [SchemeSel]  = {  selfgcolor,  selbgcolor,  selbordercolor },
       ++};
        +static const unsigned int borderpx  = 1;        /* border pixel of windows */
        +static const unsigned int snap      = 32;       /* snap pixel */
        +static const int showbar            = 1;        /* 0 means no bar */
       @@ -50,79 +53,11 @@
        +static const int nmaster     = 1;    /* number of clients in master area */
        +static const int resizehints = 1;    /* 1 means respect size hints in tiled resizals */
        +
       -+static void
       -+bstack(Monitor *m) {
       -+      int w, h, mh, mx, tx, ty, tw;
       -+      unsigned int i, n;
       -+      Client *c;
       -+
       -+      for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
       -+      if(n == 0)
       -+              return;
       -+      if(n > m->nmaster) {
       -+              mh = m->nmaster ? m->mfact * m->wh : 0;
       -+              tw = m->ww / (n - m->nmaster);
       -+              ty = m->wy + mh;
       -+      } 
       -+      else {
       -+              mh = m->wh;
       -+              tw = m->ww;
       -+              ty = m->wy;
       -+      }
       -+      for(i = mx = 0, tx = m->wx, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) {
       -+              if(i < m->nmaster) {
       -+                      w = (m->ww - mx) / (MIN(n, m->nmaster) - i);
       -+                      resize(c, m->wx + mx, m->wy, w - (2 * c->bw), mh - (2 * c->bw), False);
       -+                      mx += WIDTH(c);
       -+              } 
       -+              else {
       -+                      h = m->wh - mh;
       -+                      resize(c, tx, ty, tw - (2 * c->bw), h - (2 * c->bw), False);
       -+                      if(tw != m->ww)
       -+                              tx += WIDTH(c);
       -+              }
       -+      }
       -+}
       -+
       -+static void
       -+bstackhoriz(Monitor *m) {
       -+      int w, mh, mx, tx, ty, th;
       -+      unsigned int i, n;
       -+      Client *c;
       -+
       -+      for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
       -+      if(n == 0)
       -+              return;
       -+      if(n > m->nmaster) {
       -+              mh = m->nmaster ? m->mfact * m->wh : 0;
       -+              th = (m->wh - mh) / (n - m->nmaster);
       -+              ty = m->wy + mh;
       -+      } 
       -+      else {
       -+              th = mh = m->wh;
       -+              ty = m->wy;
       -+      }
       -+      for(i = mx = 0, tx = m->wx, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) {
       -+              if(i < m->nmaster) {
       -+                      w = (m->ww - mx) / (MIN(n, m->nmaster) - i);
       -+                      resize(c, m->wx + mx, m->wy, w - (2 * c->bw), mh - (2 * c->bw), False);
       -+                      mx += WIDTH(c);
       -+              } 
       -+              else {
       -+                      resize(c, tx, ty, m->ww - (2 * c->bw), th - (2 * c->bw), False);
       -+                      if(th != m->wh)
       -+                              ty += HEIGHT(c);
       -+              }
       -+      }
       -+}
       -+
        +static const Layout layouts[] = {
        +      /* symbol     arrange function */
        +      { "[M]",      monocle }, /* first entry is default */
        +      { "[]=",      tile },
        +      { "><>",      NULL },    /* no layout function means floating behavior */
       -+      { "TTT",      bstack },
       -+      { "===",      bstackhoriz },
        +};
        +
        +static void
       @@ -191,8 +126,6 @@
        +      { MODKEY,                       XK_m,         setlayout,      {.v = &layouts[0]} },
        +      { MODKEY,                       XK_t,         setlayout,      {.v = &layouts[1]} },
        +      { MODKEY,                       XK_f,         setlayout,      {.v = &layouts[2]} },
       -+      { MODKEY,                       XK_o,         setlayout,      {.v = &layouts[3]} },
       -+      { MODKEY|ShiftMask,             XK_o,         setlayout,      {.v = &layouts[4]} },
        +      { MODKEY,                       XK_space,     setlayout,      {0} },
        +      { MODKEY|ShiftMask,             XK_space,     togglefloating, {0} },
        +      { MODKEY,                       XK_0,         view,           {.ui = ~0 } },
       @@ -218,7 +151,7 @@
        +};
        +
        +/* button definitions */
       -+/* click can be ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
       ++/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
        +static Button buttons[] = {
        +      /* click                event mask      button          function        argument */
        +      { ClkWinTitle,          0,              Button2,        zoom,           {0} },