[input] account input events on receive side only

This commit is contained in:
nick black 2021-09-19 22:18:37 -04:00
parent 3faf8ee3fb
commit 82a2f19d67
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

View File

@ -2050,11 +2050,7 @@ delaybound_to_deadline(const struct timespec* ts, struct timespec* absdl){
uint32_t notcurses_get(notcurses* nc, const struct timespec* ts, ncinput* ni){
struct timespec absdl;
delaybound_to_deadline(ts, &absdl);
uint32_t r = internal_get(nc->tcache.ictx, ts ? &absdl : NULL, ni);
if(r != (uint32_t)-1){
inc_input_events(nc->tcache.ictx);
}
return r;
return internal_get(nc->tcache.ictx, ts ? &absdl : NULL, ni);
}
// FIXME better performance if we move this within the locked area