From 21a638fe7324bdb55ee0227cd588031c38aec1aa Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Thu, 17 Jul 2003 17:14:30 +0000 Subject: From aatharuv: make scrollwheel ignorance configurable. --- zwgc/xcut.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'zwgc/xcut.c') 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 ) { -- cgit v1.2.3