Re: [Qemu-devel] [PATCH 21/23] gtk: custom cursor support

2013-03-20 Thread Anthony Liguori
Gerd Hoffmann writes: >>> +static void gd_mouse_set(DisplayChangeListener *dcl, >>> + int x, int y, int visible) >>> +{ >>> +/* should warp pointer to x, y here */ >> >> This is just a matter of doing: >> >> gdk_window_get_root_coords(window, x, y, &x_root, &y_ro

Re: [Qemu-devel] [PATCH 21/23] gtk: custom cursor support

2013-03-20 Thread Gerd Hoffmann
>> +static void gd_mouse_set(DisplayChangeListener *dcl, >> + int x, int y, int visible) >> +{ >> +/* should warp pointer to x, y here */ > > This is just a matter of doing: > > gdk_window_get_root_coords(window, x, y, &x_root, &y_root); > gdk_display_warp_poin

Re: [Qemu-devel] [PATCH 21/23] gtk: custom cursor support

2013-03-20 Thread Anthony Liguori
Gerd Hoffmann writes: > Makes gtk ui play nicely with qxl (and vmware_svga) > as you can actually see your pointer now ;) > > Signed-off-by: Gerd Hoffmann > --- > ui/gtk.c | 25 + > 1 file changed, 25 insertions(+) > > diff --git a/ui/gtk.c b/ui/gtk.c > index 7599ff4..

[Qemu-devel] [PATCH 21/23] gtk: custom cursor support

2013-03-20 Thread Gerd Hoffmann
Makes gtk ui play nicely with qxl (and vmware_svga) as you can actually see your pointer now ;) Signed-off-by: Gerd Hoffmann --- ui/gtk.c | 25 + 1 file changed, 25 insertions(+) diff --git a/ui/gtk.c b/ui/gtk.c index 7599ff4..512e974 100644 --- a/ui/gtk.c +++ b/ui/gtk