Received: from eggs.gnu.org ([2001:4830:134:3::10]:55866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5Yru-0005w2-OL for qemu-devel@nongnu.org; Fri, 11 Jul 2014 07:20:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5Yrl-0007iZ-JF for qemu-devel@nongnu.org; Fri, 11 Jul 2014 07:19:58 -0400 Received: from oxygen.pond.sub.org ([2a01:4f8:201:233:1::3]:34117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5Yrl-0007iS-Bn for qemu-devel@nongnu.org; Fri, 11 Jul 2014 07:19:49 -0400 From: Markus Armbruster References: <1404844137-25310-1-git-send-email-jsnow@redhat.com> Date: Fri, 11 Jul 2014 13:19:48 +0200 In-Reply-To: <1404844137-25310-1-git-send-email-jsnow@redhat.com> (John Snow's message of "Tue, 8 Jul 2014 14:28:57 -0400") Message-ID: <87a98gxhuz.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH RESEND] ui/gtk: Restore keyboard focus after Page change List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: John Snow Cc: stefanha@redhat.com, qemu-devel@nongnu.org, aliguori@amazon.com, kraxel@redhat.com John Snow writes: > (Resending for correct email addresses via MAINTAINERS ...) The note above... > In the GTK UI, after changing focus to the qemu monitor Notebook Page, > when restoring focus to the virtual machine page, the keyboard focus is lost > to a hidden GTK widget. Focus can only be restored to the virtual machine by > pressing "tab" or any of the four directional arrow keys. > > Clicking in the window or grabbing/ungrabbing input does not restore keyboard > focus to the child widget. > > This patch adjusts the Notebook page switching callback to automatically > steal keyboard focus on the Page switch event, so that keyboard input > does not appear to break or disappear after tabbing to the QEMU monitor. > > Signed-off-by: John Snow > --- ... should go here next time. > ui/gtk.c | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) [...]