commit c5ca321450fe59424dcf9155790b6c789ed3dfac
Author: Chris Down <[email protected]>
Date:   Tue Dec 21 03:04:43 2021 +0000

    [dwm][patches][layoutmonitorrules] Fix layout selection for pertag

diff --git 
a/dwm.suckless.org/patches/layoutmonitorrules/dwm-layoutmonitorrules-pertag-20211216-a786211d6cb7.diff
 
b/dwm.suckless.org/patches/layoutmonitorrules/dwm-layoutmonitorrules-pertag-20211216-a786211d6cb7.diff
index 62281cca..ed2abc10 100644
--- 
a/dwm.suckless.org/patches/layoutmonitorrules/dwm-layoutmonitorrules-pertag-20211216-a786211d6cb7.diff
+++ 
b/dwm.suckless.org/patches/layoutmonitorrules/dwm-layoutmonitorrules-pertag-20211216-a786211d6cb7.diff
@@ -15,7 +15,7 @@ index a2ac963..9af5393 100644
        /* symbol     arrange function */
        { "[]=",      tile },    /* first entry is default */
 diff --git dwm.c dwm.c
-index 5eeb496..f83a555 100644
+index 5eeb496..b71cac9 100644
 --- dwm.c
 +++ dwm.c
 @@ -111,6 +111,13 @@ typedef struct {
@@ -59,7 +59,7 @@ index 5eeb496..f83a555 100644
 +
 +                      if (selmon->mw >= lmr->mw &&
 +                          selmon->mh >= lmr->mh &&
-+                          selmon->pertag->sellts[t] == lmr->layout)
++                          selmon->lt[selmon->pertag->sellts[t]] == 
&layouts[lmr->layout])
 +                      {
 +                              new_mfact = lmr->mfact;
 +                              new_nmaster = lmr->nmaster;


Reply via email to