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 +++-- zwgc/zwgc.1 | 8 ++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'zwgc') 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. -- cgit v1.2.3