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 | |
parent | f77d1828eb71e1d559f580dcc8e5c87d3836d099 (diff) |
From aatharuv: make scrollwheel ignorance configurable.
Diffstat (limited to 'zwgc')
-rw-r--r-- | zwgc/xcut.c | 5 | ||||
-rw-r--r-- | zwgc/zwgc.1 | 8 |
2 files changed, 11 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 ) { diff --git a/zwgc/zwgc.1 b/zwgc/zwgc.1 index 56ec089..48ab388 100644 --- a/zwgc/zwgc.1 +++ b/zwgc/zwgc.1 @@ -811,6 +811,14 @@ entirely. Transient Secondary transient determining value [default False] .TP +scrollDelete +(logical) If true, scrolling over a zgram will cause it +to be deleted +.TP +ScrollDelete +Secondary value to enable deletion of a zgram by scrolling over it +[default False] +.TP enableDelete (logical) If true, zwgc creates a WM_PROTOCOLS property on all zgrams, with WM_DELETE_WINDOW as contents. |