properly handle command to stop sending mouse clicks

This commit is contained in:
cy384 2021-01-22 17:24:08 -05:00
parent 9c67eafebd
commit df6ccd0449
1 changed files with 1 additions and 1 deletions

View File

@ -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