-
Notifications
You must be signed in to change notification settings - Fork 493
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mc: fix mouse support with newer ncurses (#5205)
- Loading branch information
Showing
2 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Fix mouse-key input with ncurses6 in terminals without basic X10 mouse | ||
support, at the cost of breaking it with ncurses5. See discussion in | ||
https://midnight-commander.org/ticket/4144 . | ||
|
||
--- a/lib/tty/key.c | ||
+++ b/lib/tty/key.c | ||
@@ -2124,8 +2124,7 @@ | ||
gboolean extended = c == MCKEY_EXTENDED_MOUSE; | ||
|
||
#ifdef KEY_MOUSE | ||
- extended = extended || (c == KEY_MOUSE && xmouse_seq == NULL | ||
- && xmouse_extended_seq != NULL); | ||
+ extended = extended || (c == KEY_MOUSE && xmouse_extended_seq != NULL); | ||
#endif /* KEY_MOUSE */ | ||
|
||
xmouse_get_event (event, extended); |