]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
mux: fix ctrl-a b again
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 16 Apr 2018 18:18:44 +0000 (20:18 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 17 Apr 2018 11:52:48 +0000 (12:52 +0100)
Commit fb5e19d2e1472e96d72d5e4d89c20033f8ab345c originally fixed the
regression, but was inadvertently broken again in merge commit
2d6752d38d8acda.

Fixes:
https://bugs.launchpad.net/qemu/+bug/1654137

Cc: qemu-stable@nongnu.org
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20180416181844.7851-1-marcandre.lureau@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
chardev/char-mux.c

index 1b925c8dec017bd647464b33672f0c355dfa2579..6055e76293fb49aff4ec81bf068ba0e776488230 100644 (file)
@@ -304,6 +304,7 @@ void mux_set_focus(Chardev *chr, int focus)
     }
 
     d->focus = focus;
+    chr->be = d->backends[focus];
     mux_chr_send_event(d, d->focus, CHR_EVENT_MUX_IN);
 }