[input] account input events on receive side only

pull/2197/head
nick black 3 years ago
parent 3faf8ee3fb
commit 82a2f19d67
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -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

Loading…
Cancel
Save