summaryrefslogtreecommitdiffstats
path: root/source/scrollbar.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2015-09-04 17:55:54 +0200
committerDave Davenport <qball@gmpclient.org>2015-09-04 17:55:54 +0200
commit1e4721b27546cf6b35df821aedffc374fbe80b76 (patch)
tree93d4f84450a82220d4bfdb6355b7ba1b219d3358 /source/scrollbar.c
parent5031cdd228df3e6db1c38b1c3db0dbb563b8381d (diff)
Add linemargin between handle and rows.
Diffstat (limited to 'source/scrollbar.c')
-rw-r--r--source/scrollbar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/scrollbar.c b/source/scrollbar.c
index 1eb16284..762ffed9 100644
--- a/source/scrollbar.c
+++ b/source/scrollbar.c
@@ -32,7 +32,7 @@
#include <X11/Xft/Xft.h>
#include <glib.h>
#include "scrollbar.h"
-
+#include "rofi.h"
#include "x11-helper.h"
extern Display *display;
@@ -115,7 +115,7 @@ void scrollbar_draw ( scrollbar *sb )
// Redraw base window
XClearWindow ( display, sb->window );
// Paint the handle.
- XFillRectangle ( display, sb->window, sb->gc, 0, y, sb->w, height );
+ XFillRectangle ( display, sb->window, sb->gc, config.line_margin, y, sb->w-config.line_margin, height );
}
unsigned int scrollbar_clicked ( scrollbar *sb, int y )