expo: Correct handling of mouse clicks

Due to a missing return in bootflow_menu_poll() a click on any object is
handled as if it were a click on the settings object. Fix this by
returning the correct error code for unrecognised clicks.

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: e94de63e6c ("expo: Add a way to select settings")
This commit is contained in:
Simon Glass
2025-10-21 04:00:16 +01:00
parent 7c50fc5afa
commit f56c1b0238

View File

@@ -418,6 +418,7 @@ int bootflow_menu_poll(struct expo *exp, int *seqp)
case EXPOACT_CLICK:
if (act.select.id == OBJ_SETTINGS)
return -ECOMM; /* layout change request */
return -EAGAIN;
case EXPOACT_SETTINGS:
return -ECOMM; /* layout change request */
default: