Revert "char: use a fixed idx for child muxed chr"
commit692d88b4085559f1254d0e04d64a849ce8ab5932
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 13 Oct 2016 11:14:41 +0000 (13 15:14 +0400)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 13 Oct 2016 12:56:31 +0000 (13 13:56 +0100)
treea3534b89be7fe2b9be9849b5e180a7734c868837
parentc9662023ab97cd163bb5525bf5007422fdff7983
Revert "char: use a fixed idx for child muxed chr"

That commit mis-used mux char: the frontend are multiplexed, not the
backend. Fix the regression preventing "c-a c" to switch the focus. The
following patches will fix the crash (when leaving or removing frontend)
by tracking frontends with handler tags.

This reverts commit 949055a2549afc4cde06b7972072c7288bb43722.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
include/sysemu/char.h
qemu-char.c