Problem: After CTRL-Left-mouse click a mouse scroll also has CTRL.
Solution: Reset orig_mouse_code also for wheel events. (closes #10840)
// Apparently 0x23 and 0x24 are used by rxvt scroll wheel.
// And 0x40 and 0x41 are used by some xterm emulator.
wheel_code = mouse_code - (mouse_code >= 0x40 ? 0x40 : 0x23)
- + MOUSEWHEEL_LOW;
+ + MOUSEWHEEL_LOW;
}
# endif
is_drag = TRUE;
current_button = held_button;
}
- else if (wheel_code == 0)
+ else
{
+ if (wheel_code == 0)
+ {
# ifdef CHECK_DOUBLE_CLICK
# ifdef FEAT_MOUSE_GPM
/*
orig_num_clicks = NUM_MOUSE_CLICKS(mouse_code);
# endif
is_click = TRUE;
- orig_mouse_code = mouse_code;
+ }
+ orig_mouse_code = mouse_code;
}
if (!is_drag)
held_button = mouse_code & MOUSE_CLICK_MASK;
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 136,
/**/
135,
/**/