mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
[input] account input events on receive side only
This commit is contained in:
parent
3faf8ee3fb
commit
82a2f19d67
@ -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…
Reference in New Issue
Block a user