From df6ccd04492de161d471dd759cce635c92257b9b Mon Sep 17 00:00:00 2001 From: cy384 Date: Fri, 22 Jan 2021 17:24:08 -0500 Subject: [PATCH] properly handle command to stop sending mouse clicks --- ssheven-console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssheven-console.c b/ssheven-console.c index 2ec5e9a..9897bec 100644 --- a/ssheven-console.c +++ b/ssheven-console.c @@ -545,7 +545,7 @@ int settermprop(VTermProp prop, VTermValue *val, void *user) return 1; case VTERM_PROP_MOUSE: // number // record whether or not the terminal wants mouse clicks - con.mouse_mode = (val->number | VTERM_MOUSE_WANT_CLICK) ? CLICK_SEND : CLICK_SELECT; + con.mouse_mode = (val->number == VTERM_PROP_MOUSE_CLICK) ? CLICK_SEND : CLICK_SELECT; return 1; case VTERM_PROP_ALTSCREEN: // bool case VTERM_PROP_ICONNAME: // string