mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
notcurses_input: need lock around refresh()
This commit is contained in:
parent
55c7cc356d
commit
bfdd5dd01d
@ -34,7 +34,9 @@ static struct ncuplot* plot;
|
||||
const char* nckeystr(char32_t spkey){
|
||||
switch(spkey){ // FIXME
|
||||
case NCKEY_RESIZE:
|
||||
mtx.lock();
|
||||
NotCurses::get_instance().refresh(&dimy, &dimx);
|
||||
mtx.unlock();
|
||||
return "resize event";
|
||||
case NCKEY_INVALID: return "invalid";
|
||||
case NCKEY_LEFT: return "left";
|
||||
|
Loading…
Reference in New Issue
Block a user