Created
August 24, 2016 08:24
-
-
Save softminus/a467a5f45ae7e1a173a16da41640778f to your computer and use it in GitHub Desktop.
Disable mouse reporting in urxvt properly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/rxvt.h b/src/rxvt.h | |
index 5c7cf66..2751ba3 100644 | |
--- a/src/rxvt.h | |
+++ b/src/rxvt.h | |
@@ -646,7 +646,7 @@ enum { | |
#define PrivMode_ExtMouseRight (1UL<<24) // xterm pseudo-utf-8, but works in non-utf-8-locales | |
#define PrivMode_BlinkingCursor (1UL<<25) | |
-#define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11|PrivMode_MouseBtnEvent|PrivMode_MouseAnyEvent) | |
+#define PrivMode_mouse_report 0 /* (PrivMode_MouseX10|PrivMode_MouseX11|PrivMode_MouseBtnEvent|PrivMode_MouseAnyEvent) */ | |
#ifdef ALLOW_132_MODE | |
# define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) |
This is AWESOME!!!! Thanks!
Exactly what I was looking for, thanks!
Fabulous!
Since xterm has the same problem, I created a patch for xterm as well: https://gist.github.com/amichelic/640bf7a20cc0f03b2fced342d32050de
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I wasn't able to disable urxvt mouse reporting on Arch Linux. Thanks for the patch!