My build of dwm
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

dwm-removeborder-20200520-f09418b.diff 834 B

преди 3 години
1234567891011121314151617181920212223242526272829
  1. diff --git a/dwm.c b/dwm.c
  2. index 9fd0286..dcdbc38 100644
  3. --- a/dwm.c
  4. +++ b/dwm.c
  5. @@ -1277,12 +1277,24 @@ void
  6. resizeclient(Client *c, int x, int y, int w, int h)
  7. {
  8. XWindowChanges wc;
  9. + unsigned int n;
  10. + Client *nbc;
  11. c->oldx = c->x; c->x = wc.x = x;
  12. c->oldy = c->y; c->y = wc.y = y;
  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. +
  17. + for (n = 0, nbc = nexttiled(selmon->clients); nbc; nbc = nexttiled(nbc->next), n++);
  18. +
  19. + if (c->isfloating || selmon->lt[selmon->sellt]->arrange == NULL) {
  20. + } else {
  21. + if (selmon->lt[selmon->sellt]->arrange == monocle || n == 1) {
  22. + wc.border_width = 0;
  23. + }
  24. + }
  25. +
  26. XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc);
  27. configure(c);
  28. XSync(dpy, False);