mc: Add patch for extended mouse support back
This commit is contained in:
parent
f0307386f5
commit
9ff6343f6b
@ -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"
|
||||
|
14
packages/mc/lib-tty-key.c.patch
Normal file
14
packages/mc/lib-tty-key.c.patch
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user