diff options
author | Greg Hudson <ghudson@mit.edu> | 2003-07-16 17:09:08 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2003-07-16 17:09:08 +0000 |
commit | f77d1828eb71e1d559f580dcc8e5c87d3836d099 (patch) | |
tree | 6312fd1b25717ab907b2401decfe734c49fe39ff | |
parent | cb20ed5f4ac4d0454dc0aa1b76023677ecfd406b (diff) |
Ignore scrollwheel events so that they don't dismiss windowgrams.
-rw-r--r-- | zwgc/xcut.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) |