Don't process menu events while input is being flushed (#15742)
This commit is contained in:
parent
9a57ec29d5
commit
05ce35b103
|
@ -5239,8 +5239,9 @@ unsigned menu_event(
|
||||||
|
|
||||||
ok_old = ok_current;
|
ok_old = ok_current;
|
||||||
|
|
||||||
/* Menu must be alive */
|
/* Menu must be alive, and input must be released after menu toggle. */
|
||||||
if (!(menu_st->flags & MENU_ST_FLAG_ALIVE))
|
if ( !(menu_st->flags & MENU_ST_FLAG_ALIVE)
|
||||||
|
|| menu_st->input_driver_flushing_input > 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
/* Get pointer (mouse + touchscreen) input
|
/* Get pointer (mouse + touchscreen) input
|
||||||
|
|
Loading…
Reference in New Issue