From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:52136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UEyyq-0001bJ-Pr for qemu-devel@nongnu.org; Mon, 11 Mar 2013 05:25:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UEyyp-0003o2-5k for qemu-devel@nongnu.org; Mon, 11 Mar 2013 05:25:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UEyyo-0003nf-U4 for qemu-devel@nongnu.org; Mon, 11 Mar 2013 05:25:15 -0400 From: Markus Armbruster References: <1362752571-2056-1-git-send-email-kraxel@redhat.com> <1362752571-2056-3-git-send-email-kraxel@redhat.com> Date: Mon, 11 Mar 2013 10:25:13 +0100 In-Reply-To: <1362752571-2056-3-git-send-email-kraxel@redhat.com> (Gerd Hoffmann's message of "Fri, 8 Mar 2013 15:22:51 +0100") Message-ID: <877glethja.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 2/2] input: introduce keyboard handler list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: Anthony Liguori , qemu-devel@nongnu.org Gerd Hoffmann writes: > Add a linked list of keyboard handlers. Added handlers will go > to the head of the list. Removed handlers will be zapped from > the list. The head of the list will be used for events. > > This fixes the keyboard-dead-after-usb-kbd-unplug issue, key events > will be re-routed to the ps/2 kbd instead of being discarded. > > [ v2: fix cut+paste bug found my Markus ] In the future, please put patch history information below the --- line. > Signed-off-by: Gerd Hoffmann > --- Put it here. Thanks! > hw/hid.c | 4 ++-- > hw/hid.h | 1 + > include/ui/console.h | 6 ++++-- > ui/input.c | 37 +++++++++++++++++++++++++------------ > 4 files changed, 32 insertions(+), 16 deletions(-) [...]