From 2c305d548bd069d84f864e6c3a91b1b8976d59e9 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Sat, 22 Oct 2011 15:25:27 +0200 Subject: interface: Derive new chooser_input directly when moving Dont schedule this until redraw, since this needed hacks to ensure we got the update. --- src/pa-sink-ctl.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/pa-sink-ctl.c') diff --git a/src/pa-sink-ctl.c b/src/pa-sink-ctl.c index c7aa748..db38688 100644 --- a/src/pa-sink-ctl.c +++ b/src/pa-sink-ctl.c @@ -73,16 +73,12 @@ sink_input_info_cb(pa_context *c, const pa_sink_input_info *i, } if (is_last) { - if (!ctx->block_for_selected_index) - print_sink_list(ctx); + print_sink_list(ctx); return; } if (!(i->client != PA_INVALID_INDEX)) return; - if (ctx->block_for_selected_index && i->index == ctx->selected_index) - ctx->block_for_selected_index = FALSE; - sink_input_info sink_input = { .index = i->index, .sink = i->sink, @@ -117,8 +113,7 @@ sink_info_cb(pa_context *c, const pa_sink_info *i, } if (is_last) { - if (!ctx->block_for_selected_index) - print_sink_list(ctx); + print_sink_list(ctx); return; } -- cgit