wok rev 25643

Fix mouse issue on mc with ncurses6
author Stanislas Leduc <shann@slitaz.org>
date Fri Jan 12 14:14:28 2024 +0100 (10 months ago)
parents 4f7a4ea1e883
children 11d3cfab0628
files mc/receipt mc/stuff/fix-mouse-ncurses6.patch
line diff
     1.1 --- a/mc/receipt	Wed Jan 10 18:30:43 2024 +0100
     1.2 +++ b/mc/receipt	Fri Jan 12 14:14:28 2024 +0100
     1.3 @@ -33,6 +33,10 @@
     1.4  {
     1.5  	sed -i 's|lzma -cd|lzcat|'	src/editor/edit.c
     1.6  
     1.7 +	# Patch to use mouse with ncurses 6.x
     1.8 +	# see https://midnight-commander.org/ticket/4144
     1.9 +	patch -p1 < $stuff/fix-mouse-ncurses6.patch
    1.10 +
    1.11  	./configure			\
    1.12  		CC=gcc-83		\
    1.13  		CXX=g++-83		\
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/mc/stuff/fix-mouse-ncurses6.patch	Fri Jan 12 14:14:28 2024 +0100
     2.3 @@ -0,0 +1,12 @@
     2.4 +--- a/lib/tty/key.c
     2.5 ++++ b/lib/tty/key.c
     2.6 +@@ -2114,8 +2114,7 @@
     2.7 +         gboolean extended = c == MCKEY_EXTENDED_MOUSE;
     2.8 + 
     2.9 + #ifdef KEY_MOUSE
    2.10 +-        extended = extended || (c == KEY_MOUSE && xmouse_seq == NULL
    2.11 +-                                && xmouse_extended_seq != NULL);
    2.12 ++        extended = extended || (c == KEY_MOUSE && xmouse_extended_seq != NULL);
    2.13 + #endif /* KEY_MOUSE */
    2.14 + 
    2.15 +         xmouse_get_event (event, extended);