Commit 865ad941 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

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-d3aeb78583b8
No related merge requests found
Showing with 4 additions and 4 deletions
+4 -4
......@@ -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. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment