diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-10-21 23:07:34 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-10-21 23:16:24 +0200 |
commit | 7f3831b86ab19512fab51a4c7ca5bcffdde7ce03 (patch) | |
tree | 581ab3ed916bb043b063222fa87d9553a6da76d1 /src/interface.c | |
parent | 0fbe244eba08f748645233fef6f6556fb3d70e5e (diff) | |
download | pa-sink-ctl-7f3831b86ab19512fab51a4c7ca5bcffdde7ce03.tar.gz pa-sink-ctl-7f3831b86ab19512fab51a4c7ca5bcffdde7ce03.tar.bz2 pa-sink-ctl-7f3831b86ab19512fab51a4c7ca5bcffdde7ce03.zip |
Fix selection when moving an input around
We may not get the update for the moved index immediately,
but we calculate the new position for the selection
on redraw. So schedule redraw until we get the update, when we
move around.
Diffstat (limited to 'src/interface.c')
-rw-r--r-- | src/interface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interface.c b/src/interface.c index 8c1f0b9..f48363b 100644 --- a/src/interface.c +++ b/src/interface.c @@ -332,6 +332,7 @@ interface_get_input(GIOChannel *source, GIOCondition condition, gpointer data) sink = g_list_nth_data(ctx->sink_list, ctx->chooser_sink); /* ctx->chooser_input needs to be derived from $ctx->selected_index */ ctx->chooser_input = SELECTED_UNKNOWN; + ctx->block_for_selected_index = TRUE; pa_operation_unref(pa_context_move_sink_input_by_index(ctx->context, ctx->selected_index, sink->index, change_callback, NULL)); |