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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user