X-Git-Url: https://git.lttng.org/?p=lttngtop.git;a=blobdiff_plain;f=src%2Fcursesdisplay.c;h=9e7afb2bcadf13ce91a45e757d5bd210858980dd;hp=2686c621d21f0453066a95e435ad79d7f750f06c;hb=54645d5cab414bb3391837ef7acb919cf106c71f;hpb=467097ac13d432cc25af5c93fec285ac23d25304 diff --git a/src/cursesdisplay.c b/src/cursesdisplay.c index 2686c62..9e7afb2 100644 --- a/src/cursesdisplay.c +++ b/src/cursesdisplay.c @@ -15,6 +15,10 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include + +#ifdef HAVE_LIBNCURSES + #include #include #include @@ -244,7 +248,7 @@ void update_selected_processes() if (process_selected(selected_process)) { remove_filter_tid_list(selected_process->tid); } else { - add_filter_tid_list(selected_process->tid, selected_process); + add_filter_tid_list(selected_process); } } @@ -1346,6 +1350,7 @@ void update_hostname_pref(int *line_selected, int toggle_filter, int toggle_sort host = g_hash_table_lookup(global_host_list, hostlist->data); if (i == *line_selected && toggle_filter == 1) { host->filter = host->filter == 1 ? 0:1; + update_hostname_filter(host); update_current_view(); } if (i == *line_selected) { @@ -1770,3 +1775,5 @@ void init_ncurses() pthread_create(&keyboard_thread, NULL, handle_keyboard, (void *)NULL); } + +#endif /* HAVE_LIBNCURSES */