diff options
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. |