1. 14 6月, 2017 3 次提交
    • G
      gtk: prefer gtk3 over gtk2 · 5fe309ff
      Gerd Hoffmann 提交于
      In case the configure script finds both gtk2 and gtk3 installed it
      still prefers gtk2 over gtk3.  Prefer gtk3 instead.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Reviewed-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-id: 20170606105339.3613-2-kraxel@redhat.com
      5fe309ff
    • J
      spice: Use proper enum type for kbd led state · bfefa6d7
      Jonathon Jongsma 提交于
      Although the Qemu and spice flags currently have the same value, it
      seems more correct to pass the spice flag values to
      spice_server_kbd_leds(), especially considering that this function
      already makes an effort to convert between the QEMU_*_LED and
      SPICE_KEYBOARD_MODIFIER_* values.
      Signed-off-by: NJonathon Jongsma <jjongsma@redhat.com>
      Reviewed-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
      Message-id: 20170510202006.31737-1-jjongsma@redhat.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      bfefa6d7
    • I
      Improve Cocoa modifier key handling · af8862b2
      Ian McKellar via Qemu-devel 提交于
      I had two problems with QEMU on macOS:
       1) Sometimes when alt-tabbing to QEMU it would act as if the 'a' key
          was pressed so I'd get 'aaaaaaaaa....'.
       2) Using Sikuli to programatically send keys to the QEMU window text
          like "foo_bar" would come out as "fooa-bar".
      
      They looked similar and after much digging the problem turned out to be
      the same. When QEMU's ui/cocoa.m received an NSFlagsChanged NSEvent it
      looked at the keyCode to determine what modifier key changed. This
      usually works fine but sometimes the keyCode is 0 and the app should
      instead be looking at the modifierFlags bitmask. Key code 0 is the 'a'
      key.
      
      I added code that handles keyCode == 0 differently. It checks the
      modifierFlags and if they differ from QEMU's idea of which modifier
      keys are currently pressed it toggles those changed keys.
      
      This fixes my problems and seems work fine.
      Signed-off-by: NIan McKellar <ianloic@google.com>
      Message-id: 20170526233816.47627-1-ianloic@google.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      af8862b2
  2. 13 6月, 2017 37 次提交