diff options
author | Greg Hudson <ghudson@mit.edu> | 2003-07-17 17:14:30 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2003-07-17 17:14:30 +0000 |
commit | 21a638fe7324bdb55ee0227cd588031c38aec1aa (patch) | |
tree | 1a7d7c368d4691ba7df446f9ba9559e71176e557 /zwgc/xcut.c | |
parent | f77d1828eb71e1d559f580dcc8e5c87d3836d099 (diff) |
From aatharuv: make scrollwheel ignorance configurable.
Diffstat (limited to 'zwgc/xcut.c')
-rw-r--r-- | zwgc/xcut.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/zwgc/xcut.c b/zwgc/xcut.c index a63ee1b..16c182a 100644 --- a/zwgc/xcut.c +++ b/zwgc/xcut.c @@ -242,8 +242,9 @@ void xcut(dpy,event,desc_context) case ButtonPress: if (current_pressop != PRESSOP_NONE) { current_pressop = PRESSOP_STOP; - } else if (event->xbutton.button==Button4 || - event->xbutton.button==Button5) { + } else if ((event->xbutton.button==Button4 || + event->xbutton.button==Button5) && + !get_bool_resource("scrollDelete","ScrollDelete",0)) { /* Ignore scroll wheel movement. */ break; } else if ( (event->xbutton.state)&ShiftMask ) { |