Re: [Qemu-devel] [PATCH 5/7] sdl2 uses surface relative coordinates

2017-11-03 Thread Gerd Hoffmann
On Thu, 2017-11-02 at 17:07 +, Jindřich Makovička wrote: > Hi, > > this patch fixes the exact case you mentioned. Currently, with > surface size > smaller than the window, the pointer is confined to the top left > corner > when using the absolute mode (-usbdevice tablet). Tracked down. Seems

Re: [Qemu-devel] [PATCH 5/7] sdl2 uses surface relative coordinates

2017-11-02 Thread Jindřich Makovička
Hi, this patch fixes the exact case you mentioned. Currently, with surface size smaller than the window, the pointer is confined to the top left corner when using the absolute mode (-usbdevice tablet). On Wed, Nov 1, 2017 at 11:43 AM Gerd Hoffmann wrote: > Why? > > Also I think this breaks the

Re: [Qemu-devel] [PATCH 5/7] sdl2 uses surface relative coordinates

2017-11-01 Thread Gerd Hoffmann
Why? Also I think this breaks the pointer in case window size doesn't match surface size. cheers, Gerd

[Qemu-devel] [PATCH 5/7] sdl2 uses surface relative coordinates

2017-10-23 Thread Jindrich Makovicka
--- ui/sdl2.c | 28 ++-- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/ui/sdl2.c b/ui/sdl2.c index fa54353430..092eab37dc 100644 --- a/ui/sdl2.c +++ b/ui/sdl2.c @@ -276,32 +276,8 @@ static void sdl_send_mouse_event(struct sdl2_console *scon, int dx, int dy