Skip to content

Instantly share code, notes, and snippets.

@ttdoda
Created May 11, 2013 04:39
Show Gist options
  • Save ttdoda/5558920 to your computer and use it in GitHub Desktop.
Save ttdoda/5558920 to your computer and use it in GitHub Desktop.
PuTTY wheel fix
Index: terminal.c
===================================================================
--- terminal.c (revision 9002)
+++ terminal.c (working copy)
@@ -5731,6 +5731,8 @@
case MA_RELEASE:
encstate = 0x23;
term->mouse_is_down = 0;
+ if (braw == MBT_WHEEL_UP || braw == MBT_WHEEL_DOWN)
+ return;
break;
case MA_CLICK:
if (term->mouse_is_down == braw)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment