perf ui browser: Handle SIGWINCH
To do that we needed to stop using newtForm, as we don't want libnewt to catch the xterm resize signal. Remove some more newt calls and instead use the underlying libslang directly. In time tools/perf will use just libslang. Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-h1824yjiru5n2ivz4bseizwj@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
33e27312ae
commit
3af6e33867
9 changed files with 145 additions and 69 deletions
|
|
@ -196,11 +196,8 @@ static int annotate_browser__run(struct annotate_browser *self, int evidx,
|
|||
|
||||
nd = self->curr_hot;
|
||||
|
||||
if (delay_secs != 0)
|
||||
newtFormSetTimer(self->b.form, delay_secs * 1000);
|
||||
|
||||
while (1) {
|
||||
key = ui_browser__run(&self->b);
|
||||
key = ui_browser__run(&self->b, delay_secs);
|
||||
|
||||
if (delay_secs != 0) {
|
||||
annotate_browser__calc_percent(self, evidx);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue