All of lore.kernel.org
 help / color / mirror / Atom feed
* Mouse pointer warping with gtk display
@ 2022-01-27 18:16 BALATON Zoltan
  2022-01-27 19:48 ` Marc-André Lureau
  0 siblings, 1 reply; 6+ messages in thread
From: BALATON Zoltan @ 2022-01-27 18:16 UTC (permalink / raw)
  To: qemu-devel; +Cc: Cédric Le Goater, Gerd Hoffmann, Howard Spoelstra

Hello,

We've found a problem with mouse pointer jumping around then constantly 
warping making it unusable which only seems to happen with the gtk 
display. Similar problem was reported with MacOS guests but now we could 
also reproduce with MorphOS on pegasos2 and thus confirm it's not a guest 
issue or hardware emulation problem but seems to be related to QEMU's gtk 
display. This can be reproduced as following (boot.img is the file from 
the root dir of the iso which is available from 
https://www.morphos-team.net/morphos-3.15.iso ):

qemu-system-ppc -M pegasos2 -cdrom morphos-3.15.iso -display sdl \
-L ../pc-bios -kernel boot.img -device ati-vga,romfile=""

This does not have this problem and mouse works but running with -display 
gtk has the mouse pointer issue making it unusable. It can be seemingly 
avoided with using -device ati-vga,romfile="",guest_hwcursor=true so I 
think problem is somewhere in mouse handling in ui/gtk.c with host side 
mouse pointer. The gd_motion_event() in that file has a big comment about 
warping mouse back to the middle near the end of the function which seems 
to ne what's happening and causing this as this does not appear in sdl.c 
that does not show the same issue but I don't understand what that code is 
trying to do.

It's a known problem that host mouse pointer can get out of sync with the 
guest which I think is because mouse acceleration on the host is not 
correctly taken into account when reporting mouse moves to the guest and 
this may try to correct that issue but it seems to cause more harm than 
good in some cases. Any idea what might be the problem and how to solve 
this? I wonder why nobody else is seeing this with other guests. (I'm not 
direcly interested in fixing it as I'm using sdl display but this makes it 
hard to use some guests for users whose distros make gtk backend the 
default which may actually be most people so it might be a good idea to 
improve this for them so I thought at least reporting the problem is 
useful.)

Regards,
BALATON Zoltan


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-01-27 23:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-27 18:16 Mouse pointer warping with gtk display BALATON Zoltan
2022-01-27 19:48 ` Marc-André Lureau
2022-01-27 20:28   ` Howard Spoelstra
2022-01-27 20:37     ` Mark Cave-Ayland
2022-01-27 23:07       ` BALATON Zoltan
2022-01-27 21:55     ` BALATON Zoltan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.