in get_mouseinput(), handle both releases and clicks of mouse button 1,
as the mouse support works better that way git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3689 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
6c8f92c092
commit
865ad94100
|
@ -6,7 +6,7 @@ CVS code -
|
|||
-W/--wordbounds. Changes to usage(), nano.1, nanorc.5,
|
||||
rnano.1, nano.texi, and nanorc.sample.in. (DLR)
|
||||
- Fix mouse support so that it really ignores everything except
|
||||
releases of button 1 (i.e, left clicks). Changes to
|
||||
releases and clicks of button 1. Changes to
|
||||
enable_mouse_support() and get_mouseinput(). (DLR)
|
||||
- browser.c:
|
||||
do_browser()
|
||||
|
|
|
@ -1520,9 +1520,9 @@ bool get_mouseinput(int *mouse_x, int *mouse_y, bool allow_shortcuts)
|
|||
if (getmouse(&mevent) == ERR)
|
||||
return FALSE;
|
||||
|
||||
/* If it's not a release of the first mouse button (i.e, a left
|
||||
* click), get out. */
|
||||
if (!(mevent.bstate & BUTTON1_RELEASED))
|
||||
/* If it's not a release or click of the first mouse button, get
|
||||
* out. */
|
||||
if (!(mevent.bstate & (BUTTON1_RELEASED | BUTTON1_CLICKED)))
|
||||
return FALSE;
|
||||
|
||||
/* Save the screen coordinates where the mouse event took place. */
|
||||
|
|
Loading…
Reference in New Issue