commit de37d88f34a7c2558551c166a26bfe924cb2d6fb
Author: Michael Peters <[email protected]>
Date:   Sun Jun 26 19:12:00 2022 -0500

    [dwm][patch][removeborder] fix multi monitor
    
    Previously, tagging a client from a monitor with >2 clients to a
    monitor with 0 clients incorrectly drew a border on the target
    client. Now, the target client will be drawn without a border.

diff --git 
a/dwm.suckless.org/patches/removeborder/dwm-removeborder-20200520-f09418b.diff 
b/dwm.suckless.org/patches/removeborder/dwm-removeborder-20220626-d3f93c7.diff
similarity index 70%
rename from 
dwm.suckless.org/patches/removeborder/dwm-removeborder-20200520-f09418b.diff
rename to 
dwm.suckless.org/patches/removeborder/dwm-removeborder-20220626-d3f93c7.diff
index 73d75f4f..9193a77c 100644
--- 
a/dwm.suckless.org/patches/removeborder/dwm-removeborder-20200520-f09418b.diff
+++ 
b/dwm.suckless.org/patches/removeborder/dwm-removeborder-20220626-d3f93c7.diff
@@ -1,8 +1,8 @@
 diff --git a/dwm.c b/dwm.c
-index 4465af1..f869429 100644
+index 5646a5c..27e29df 100644
 --- a/dwm.c
 +++ b/dwm.c
-@@ -1276,12 +1276,26 @@ void
+@@ -1283,12 +1283,26 @@ void
  resizeclient(Client *c, int x, int y, int w, int h)
  {
        XWindowChanges wc;
@@ -15,11 +15,11 @@ index 4465af1..f869429 100644
        c->oldh = c->h; c->h = wc.height = h;
        wc.border_width = c->bw;
 +
-+      for (n = 0, nbc = nexttiled(selmon->clients); nbc; nbc = 
nexttiled(nbc->next), n++);
++      for (n = 0, nbc = nexttiled(c->mon->clients); nbc; nbc = 
nexttiled(nbc->next), n++);
 +
-+      if (c->isfloating || selmon->lt[selmon->sellt]->arrange == NULL) {
++      if (c->isfloating || c->mon->lt[c->mon->sellt]->arrange == NULL) {
 +      } else {
-+              if (selmon->lt[selmon->sellt]->arrange == monocle || n == 1) {
++              if (c->mon->lt[c->mon->sellt]->arrange == monocle || n == 1) {
 +                      wc.border_width = 0;
 +                      c->w = wc.width += c->bw * 2;
 +                      c->h = wc.height += c->bw * 2;
diff --git a/dwm.suckless.org/patches/removeborder/index.md 
b/dwm.suckless.org/patches/removeborder/index.md
index 66f1e6a6..78c421dc 100644
--- a/dwm.suckless.org/patches/removeborder/index.md
+++ b/dwm.suckless.org/patches/removeborder/index.md
@@ -7,9 +7,10 @@ Remove the border when there is only one window visible. 
Simpler reimplimentatio
 
 Download
 --------
-* 
[dwm-removeborder-20200520-f09418b.diff](dwm-removeborder-20200520-f09418b.diff)
+* 
[dwm-removeborder-20220626-d3f93c7.diff](dwm-removeborder-20220626-d3f93c7.diff)
 
 Author
 -------
 * Max Amundsen - <[email protected]>
 * Cássio Ávila - <[email protected]> (window dimensions fix)
+* Michael Peters - <[email protected]> (multi monitor fix)


Reply via email to