diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-10-22 15:25:27 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-10-22 15:36:02 +0200 |
commit | 2c305d548bd069d84f864e6c3a91b1b8976d59e9 (patch) | |
tree | 3027c32a4298c1b87e7b94a1f10539c404bbdb84 /src/pa-sink-ctl.c | |
parent | 938c0600e591c42bdf4315059c6c07e61eacd50c (diff) | |
download | pa-sink-ctl-2c305d548bd069d84f864e6c3a91b1b8976d59e9.tar.gz pa-sink-ctl-2c305d548bd069d84f864e6c3a91b1b8976d59e9.tar.bz2 pa-sink-ctl-2c305d548bd069d84f864e6c3a91b1b8976d59e9.zip |
interface: Derive new chooser_input directly when moving
Dont schedule this until redraw, since this needed hacks
to ensure we got the update.
Diffstat (limited to 'src/pa-sink-ctl.c')
-rw-r--r-- | src/pa-sink-ctl.c | 9 |
1 files changed, 2 insertions, 7 deletions
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; } |