From 9ff6343f6b9f527ce42b752e02d434034fe55303 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Tue, 28 Jul 2020 11:55:25 +0200 Subject: [PATCH] mc: Add patch for extended mouse support back --- packages/mc/build.sh | 2 +- packages/mc/lib-tty-key.c.patch | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 packages/mc/lib-tty-key.c.patch diff --git a/packages/mc/build.sh b/packages/mc/build.sh index 074c51c85..87a09ab16 100644 --- a/packages/mc/build.sh +++ b/packages/mc/build.sh @@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://www.midnight-commander.org/ TERMUX_PKG_DESCRIPTION="Midnight Commander - a powerful file manager" TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_VERSION=4.8.25 -TERMUX_PKG_REVISION=1 +TERMUX_PKG_REVISION=2 TERMUX_PKG_SRCURL=http://ftp.midnight-commander.org/mc-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SHA256=ffc19617f20ebb23330acd3998b7fd559a042d172fa55746d53d246697b2548a TERMUX_PKG_DEPENDS="libandroid-support, libiconv, ncurses, glib, openssl, libssh2, zlib" diff --git a/packages/mc/lib-tty-key.c.patch b/packages/mc/lib-tty-key.c.patch new file mode 100644 index 000000000..67ab48b07 --- /dev/null +++ b/packages/mc/lib-tty-key.c.patch @@ -0,0 +1,14 @@ +diff -u -r ../mc-4.8.25/lib/tty/key.c ./lib/tty/key.c +--- ../mc-4.8.25/lib/tty/key.c 2020-07-05 17:38:53.000000000 +0000 ++++ ./lib/tty/key.c 2020-07-28 09:50:02.945832000 +0000 +@@ -2120,8 +2120,8 @@ + #endif /* KEY_MOUSE */ + || c == MCKEY_EXTENDED_MOUSE)) + { +- /* Mouse event. See tickets 2956 and 3954 for extended mode detection. */ +- gboolean extended = c == MCKEY_EXTENDED_MOUSE; ++ /* Always enable extended mouse events on Termux */ ++ gboolean extended = 1; + + #ifdef KEY_MOUSE + extended = extended || (c == KEY_MOUSE && xmouse_seq == NULL