From 3227ba46d9b93ba4006eb0bc906b6067e4f5ccf2 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sat, 14 Jul 2018 20:46:50 +0200 Subject: [PATCH] mouse: put the row/column arguments in the proper order [coverity scan] (This one call was overlooked in commit f5c87a7f that changed the order.) This makes clicking on the Yes/No/All/Cancel menu items work again. --- src/prompt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prompt.c b/src/prompt.c index a07019cf..8cdb0e9f 100644 --- a/src/prompt.c +++ b/src/prompt.c @@ -751,7 +751,7 @@ int do_yesno_prompt(bool all, const char *msg) else if (kbinput == KEY_MOUSE) { int mouse_x, mouse_y; /* We can click on the Yes/No/All shortcuts to select an answer. */ - if (get_mouseinput(&mouse_x, &mouse_y, FALSE) == 0 && + if (get_mouseinput(&mouse_y, &mouse_x, FALSE) == 0 && wmouse_trafo(bottomwin, &mouse_y, &mouse_x, FALSE) && mouse_x < (width * 2) && mouse_y > 0) { int x = mouse_x / width;