From f77d1828eb71e1d559f580dcc8e5c87d3836d099 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Wed, 16 Jul 2003 17:09:08 +0000 Subject: Ignore scrollwheel events so that they don't dismiss windowgrams. --- zwgc/xcut.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'zwgc') diff --git a/zwgc/xcut.c b/zwgc/xcut.c index 7c45cc4..a63ee1b 100644 --- a/zwgc/xcut.c +++ b/zwgc/xcut.c @@ -242,6 +242,10 @@ 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) { + /* Ignore scroll wheel movement. */ + break; } else if ( (event->xbutton.state)&ShiftMask ) { if (event->xbutton.button==Button1) { if (selecting_in) -- cgit v1.2.3