Guest User

urxvt: plain scroll no border - patch

a guest
Feb 5th, 2014
220
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --- a/src/scrollbar-plain.C 2013-11-08 16:01:14.605501622 +0400
  2. +++ b/src/scrollbar-plain.C 2013-11-08 16:01:33.569128136 +0400
  3. @@ -30,9 +30,6 @@
  4.  int
  5.  scrollBar_t::show_plain (int update)
  6.  {
  7. -  int xsb = 0;
  8. -  int sbwidth = width - 1;
  9. -
  10.    if ((init & SB_STYLE_PLAIN) == 0)
  11.      {
  12.        XGCValues gcvalue;
  13. @@ -43,26 +40,24 @@
  14.        pscrollbarGC = XCreateGC (term->dpy, win, GCForeground, &gcvalue);
  15.      }
  16.  
  17. -  xsb = term->option (Opt_scrollBar_right) ? 1 : 0;
  18. -
  19.    if (update)
  20.      {
  21.        if (last_top < top)
  22.          XClearArea (term->dpy, win,
  23.                      0, last_top,
  24. -                    sbwidth + 1, top - last_top, False);
  25. +                    width, top - last_top, False);
  26.  
  27.        if (bot < last_bot)
  28.          XClearArea (term->dpy, win,
  29.                      0, bot,
  30. -                    sbwidth + 1, last_bot - bot, False);
  31. +                    width, last_bot - bot, False);
  32.      }
  33.    else
  34.      XClearWindow (term->dpy, win);
  35.  
  36.    /* scrollbar slider */
  37.    XFillRectangle (term->dpy, win, pscrollbarGC,
  38. -                  1 - xsb, top, sbwidth, bot - top);
  39. +                  0, top, width, bot - top);
  40.  
  41.    return 1;
  42.  }
RAW Paste Data