dwm-noborderfloatingfix-6.2.diff 980 B

1234567891011121314151617181920212223242526272829303132
  1. From 700b0bdea872f4c00182b2bd925b41fe03f8d222 Mon Sep 17 00:00:00 2001
  2. From: Aidan Hall <aidan.hall@outlook.com>
  3. Date: Tue, 2 Jun 2020 14:41:53 +0000
  4. Subject: [PATCH] Prevents hiding the border if layout is floating.
  5. ---
  6. dwm.c | 8 ++++++++
  7. 1 file changed, 8 insertions(+)
  8. diff --git a/dwm.c b/dwm.c
  9. index 4465af1..2dd959d 100644
  10. --- a/dwm.c
  11. +++ b/dwm.c
  12. @@ -1282,6 +1282,14 @@ resizeclient(Client *c, int x, int y, int w, int h)
  13. c->oldw = c->w; c->w = wc.width = w;
  14. c->oldh = c->h; c->h = wc.height = h;
  15. wc.border_width = c->bw;
  16. + if (((nexttiled(c->mon->clients) == c && !nexttiled(c->next))
  17. + || &monocle == c->mon->lt[c->mon->sellt]->arrange)
  18. + && !c->isfullscreen && !c->isfloating
  19. + && NULL != c->mon->lt[c->mon->sellt]->arrange) {
  20. + c->w = wc.width += c->bw * 2;
  21. + c->h = wc.height += c->bw * 2;
  22. + wc.border_width = 0;
  23. + }
  24. XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc);
  25. configure(c);
  26. XSync(dpy, False);
  27. --
  28. 2.26.2