summaryrefslogtreecommitdiffstats
path: root/source/scrollbar.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2015-09-14 18:13:52 +0200
committerDave Davenport <qball@gmpclient.org>2015-09-14 18:14:01 +0200
commitae043d524679c581e434f58a6bb2668f10b336cd (patch)
treec77dc9ed57cffedfbe117b4307ea1f43ad8a1c6a /source/scrollbar.c
parent6a8a367cbdb33cf3ed08ab9813c80d9ad258384a (diff)
Allow dragging scrollbar.
Diffstat (limited to 'source/scrollbar.c')
-rw-r--r--source/scrollbar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/scrollbar.c b/source/scrollbar.c
index 0452b1cd..85ad3bb7 100644
--- a/source/scrollbar.c
+++ b/source/scrollbar.c
@@ -59,7 +59,7 @@ scrollbar *scrollbar_create ( Window parent, XVisualInfo *vinfo, Colormap map,
sb->window = XCreateWindow ( display, sb->parent, sb->x, sb->y, sb->w, sb->h, 0, vinfo->depth,
InputOutput, vinfo->visual, CWColormap | CWBorderPixel | CWBackPixel, &attr );
- XSelectInput ( display, sb->window, ExposureMask | ButtonPressMask );
+ XSelectInput ( display, sb->window, ExposureMask | ButtonPressMask | Button1MotionMask );
sb->gc = XCreateGC ( display, sb->window, 0, 0 );
XSetForeground ( display, sb->gc, color_separator ( display ) );
//XSetFillStyle ( display, sb->gc, FillSolid);