• J
    ui/gtk: Restore keyboard focus after Page change · e72b59fa
    John Snow 提交于
    (Resending for correct email addresses via MAINTAINERS ...)
    
    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: NJohn Snow <jsnow@redhat.com>
    Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
    e72b59fa
gtk.c 56.7 KB