Ticket #4016: (panel_mouse_callback): prevent run/open files with double right click.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
blubbkm 2019-09-15 11:04:07 +03:00 committed by Andrew Borodin
parent 3c95e6d64c
commit 7b187676c4

View File

@ -3898,7 +3898,7 @@ panel_mouse_callback (Widget * w, mouse_msg_t msg, mouse_event_t * event)
break;
case MSG_MOUSE_CLICK:
if ((event->count & GPM_DOUBLE) != 0)
if ((event->count & GPM_DOUBLE) != 0 && (event->buttons & GPM_B_LEFT) != 0)
{
int y, lines;