1. 17 3月, 2014 3 次提交
  2. 12 3月, 2014 1 次提交
  3. 05 3月, 2014 2 次提交
  4. 21 1月, 2014 1 次提交
  5. 03 12月, 2013 1 次提交
  6. 27 8月, 2013 1 次提交
  7. 23 7月, 2013 1 次提交
    • J
      gtk: Fix accelerator filtering · b1e749c0
      Jan Kiszka 提交于
      This is in fact very simply: When the input in grabbed, everything
      should be exclusively passed to the guest - except it has our magic
      CTRL-ALT modifier set. Then let GTK filter out those accels that are in
      use. When checking the modifier state, we just need to filter out NUM
      and CAPS lock.
      
      Note: Filtering based on hard-coded modifiers breaks overriding
      accelerators. Needs to be fixed at a later point.
      Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      b1e749c0
  8. 29 6月, 2013 1 次提交
    • G
      gtk: add support for surface conversion · f0875536
      Gerd Hoffmann 提交于
      Also use CAIRO_FORMAT_RGB24 unconditionally.  DisplaySurfaces will never
      ever see 8bpp surfaces.  And using CAIRO_FORMAT_RGB16_565 for the 16bpp
      case doesn't seem to be a good idea too.
      
      <quote src="/usr/include/cairo/cairo.h">
       * @CAIRO_FORMAT_RGB16_565: This format value is deprecated. It has
       *   never been properly implemented in cairo and should not be used
       *   by applications. (since 1.2)
      </quote>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Message-id: 1372150134-8590-1-git-send-email-kraxel@redhat.com
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      f0875536
  9. 17 6月, 2013 1 次提交
    • S
      gtk: Fix compiler warning (GTK 3 deprecated function) · 030b4b7d
      Stefan Weil 提交于
      With GTK 3, the function gdk_cursor_unref is deprecated:
      
      qemu/ui/gtk.c: In function ‘gd_cursor_define’:
      qemu/ui/gtk.c:380:5: error:
       ‘gdk_cursor_unref’ is deprecated (declared at /usr/include/gtk-3.0/gdk/gdkcursor.h:233): Use 'g_object_unref' instead [-Werror=deprecated-declarations]
      
      Fix the gcc compiler warning by using conditional compilation.
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Message-id: 1371391987-10795-1-git-send-email-sw@weilnetz.de
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      030b4b7d
  10. 14 6月, 2013 1 次提交
    • M
      create qemu_openpty_raw() helper function and move it to a separate file · 4efeabbb
      Michael Tokarev 提交于
      In two places qemu uses openpty() which is very system-dependent,
      and in both places the pty is switched to raw mode as well.
      Make a wrapper function which does both steps, and move all the
      system-dependent complexity into a separate file, together
      with static/local implementations of openpty() and cfmakeraw()
      from qemu-char.c.
      
      It is in a separate file, not part of oslib-posix.c, because
      openpty() often resides in -lutil which is not linked to
      every program qemu builds.
      
      This change removes #including of <pty.h>, <termios.h>
      and other rather specific system headers out of qemu-common.h,
      which isn't a place for such specific headers really.
      
      This version has been verified to build correctly on Linux,
      OpenBSD, FreeBSD and OpenIndiana.  On the latter it lets qemu
      to be built with gtk gui which were not possible there due to
      missing openpty() and cfmakeraw().
      Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
      Tested-by: NAndreas Färber <andreas.faerber@web.de>
      4efeabbb
  11. 12 6月, 2013 1 次提交
  12. 11 6月, 2013 2 次提交
    • M
      qemu-char: don't issue CHR_EVENT_OPEN in a BH · bd5c51ee
      Michael Roth 提交于
      When CHR_EVENT_OPENED was initially added, it was CHR_EVENT_RESET,
      and it was issued as a bottom-half:
      
      86e94dea
      
      Which we basically used to print out a greeting/prompt for the
      monitor.
      
      AFAICT the only reason this was ever done in a BH was because in
      some cases we'd modify the chr_write handler for a new chardev
      backend *after* the site where we issued the reset (see:
      86e94d:qemu_chr_open_stdio())
      
      At some point this event was renamed to CHR_EVENT_OPENED, and we've
      maintained the use of this BH ever since.
      
      However, due to 9f939df9, we schedule
      the BH via g_idle_add(), which is causing events to sometimes be
      delivered after we've already begun processing data from backends,
      leading to:
      
       known bugs:
      
        QMP:
          session negotation resets with OPENED event, in some cases this
          is causing new sessions to get sporadically reset
      
       potential bugs:
      
        hw/usb/redirect.c:
          can_read handler checks for dev->parser != NULL, which may be
          true if CLOSED BH has not been executed yet. In the past, OPENED
          quiesced outstanding CLOSED events prior to us reading client
          data. If it's delayed, our check may allow reads to occur even
          though we haven't processed the OPENED event yet, and when we
          do finally get the OPENED event, our state may get reset.
      
        qtest.c:
          can begin session before OPENED event is processed, leading to
          a spurious reset of the system and irq_levels
      
        gdbstub.c:
          may start a gdb session prior to the machine being paused
      
      To fix these, let's just drop the BH.
      
      Since the initial reasoning for using it still applies to an extent,
      work around that by deferring the delivery of CHR_EVENT_OPENED until
      after the chardevs have been fully initialized, toward the end of
      qmp_chardev_add() (or some cases, qemu_chr_new_from_opts()). This
      defers delivery long enough that we can be assured a CharDriverState
      is fully initialized before CHR_EVENT_OPENED is sent.
      
      Also, rather than requiring each chardev to do an explicit open, do it
      automatically, and allow the small few who don't desire such behavior to
      suppress the OPENED-on-init behavior by setting a 'explicit_be_open'
      flag.
      
      We additionally add missing OPENED events for stdio backends on w32,
      which were previously not being issued, causing us to not recieve the
      banner and initial prompts for qmp/hmp.
      Reported-by: NStefan Priebe <s.priebe@profihost.ag>
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      Message-id: 1370636393-21044-1-git-send-email-mdroth@linux.vnet.ibm.com
      Cc: qemu-stable@nongnu.org
      Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      bd5c51ee
    • A
      gtk: use better icon · f7da9c17
      Anthony Liguori 提交于
      The current icon looks pretty terrible rendered in Gnome.  This
      switches to a transparent SVG which looks much nicer.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      f7da9c17
  13. 04 6月, 2013 2 次提交
  14. 14 5月, 2013 1 次提交
  15. 13 5月, 2013 1 次提交
  16. 26 4月, 2013 2 次提交
  17. 23 4月, 2013 1 次提交
  18. 17 4月, 2013 1 次提交
  19. 16 4月, 2013 4 次提交
  20. 02 4月, 2013 2 次提交
  21. 27 3月, 2013 1 次提交
  22. 26 3月, 2013 1 次提交
  23. 18 3月, 2013 5 次提交
  24. 13 3月, 2013 1 次提交
  25. 27 2月, 2013 2 次提交