mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
pw-top: reduce flicker when updating
Use wearase() instead of wclear() before redrawing Fixes #4818
This commit is contained in:
parent
56e2d52b65
commit
e2c291d18e
1 changed files with 1 additions and 1 deletions
|
|
@ -562,7 +562,7 @@ static void do_refresh(struct data *d, bool force_refresh)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (!d->batch_mode) {
|
if (!d->batch_mode) {
|
||||||
wclear(d->win);
|
werase(d->win);
|
||||||
wattron(d->win, A_REVERSE);
|
wattron(d->win, A_REVERSE);
|
||||||
wprintw(d->win, "%-*.*s", COLS, COLS, HEADER);
|
wprintw(d->win, "%-*.*s", COLS, COLS, HEADER);
|
||||||
wattroff(d->win, A_REVERSE);
|
wattroff(d->win, A_REVERSE);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue