daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Apr 8th, 2012 25 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- dwm.c.orig  2012-04-07 14:07:18.104540878 +0200
  2. +++ dwm.c.patched       2012-04-07 17:38:34.314341655 +0200
  3. @@ -765,13 +765,14 @@
  4.                         urg |= c->tags;
  5.         }
  6.         dc.x = 0;
  7. +       dc.w = m->ww;
  8. +       drawborder(dc.colors[0]);
  9.         for(i = 0; i < LENGTH(tags); i++) {
  10.                 dc.w = TEXTW(tags[i].name);
  11.          col = dc.colors[ (m->tagset[m->seltags] & 1 << i) ?
  12.          1 : (urg & 1 << i ? 2:0) ];
  13.          drawtext(tags[i].name, col, True);
  14. -               drawsquare(m == selmon && selmon->sel && selmon->sel->tags & 1 << i,
  15. -                          occ & 1 << i, col);
  16. +               drawborder(col);
  17.                 dc.x += dc.w;
  18.         }
  19.         blw = TEXTW(m->ltsymbol);
  20. @@ -819,6 +820,16 @@
  21.  }
  22.  
  23.  void
  24. +drawborder(unsigned long col[ColLast]){
  25. +        XGCValues gcv;
  26. +        XRectangle r = {dc.x, dc.y, dc.w, 1 };
  27. +        
  28. +        gcv.foreground = col[ColBorder];
  29. +        XChangeGC(dpy, dc.gc, GCForeground, &gcv);
  30. +        XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1);
  31. +}
  32. +
  33. +void
  34.  drawbars(void) {
  35.         Monitor *m;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand