Am 15.12.2016 um 23:30 hat Michael S. Tsirkin geschrieben: > On Thu, Dec 15, 2016 at 05:25:50PM +0100, Gerd Hoffmann wrote: > > Hi, > > > > > > > > The problem always reproduces for me: > > > > > > - start qemu with -sdl > > > > > > - wait for guest to boot > > > > > > - click anywhere within guest screen > > > > > > - message "press ctrl+alt to exit capture" appears on screen, > > > > > > but pressing that immediately restarts capture again > > > > [ 2.6 good, 2.7, 2.8 bad ] > > > > > I'd say SDL is mostly useless with this bug. > > > > > > Do we fix this or disable SDL altogether? > > > > Well, it can't be *that* bad, otherwise it would not went unnoticed for > > a whole release cycle. > > > > It doesn't reproduce here. There must be some other factor which is > > needed to trigger this. What desktop you are using? gnome? kde? > > something else? Xorg or wayland? > > > > Can you try to bisect it? > > Looks like 2.6 does not work either :( Gerd, are you using F25? > Steps > - launch fedora guest with kvm, default pc graphics and SDL ui > - wait until graphical login prompt starts > - click within window > > afterwards, clicking Ctrl-Alt exits and immediately restarts grab.
I'm seeing two different behaviours depending on the guest: The first is the traditional behaviour where you click in the window, it grabs and you control the guest's mouse cursor, and here ctrl+alt works fine to ungrab. The second one is much like with the tablet in that it shared the mouse cursor between host and guest. In this one, when I ungrab with ctrl+alt, it automatically grabs again as soon as I move the mouse cursor (i.e. it is actually ungrabbed if I only use the keyboard). But as the mouse cursor is shared with the host, I can simply move it out of the VM window and then the capture ends, so that's fine. So for me that's exactly what I want it to do (RHEL 7 host with qemu.git master). Is what you got the second behaviour, but without the shared mouse cursor? Kevin