[Spice-devel] [spice-gtk v1] widget: mouse: Fix getting coordinates

2019-02-12 Thread Victor Toso
From: Victor Toso Documentation for gdk_display_get_primary_monitor() says that it returns "the primary monitor, or NULL if no primary monitor is configured by the user". If monitor endup being NULL, we endup using unitialized GdkRectangle geom later on as gdk_monitor_get_geometry() will fail wi

[Spice-devel] [spice-gtk v1] widget: mouse: Fix getting coordinates

2019-02-12 Thread Victor Toso
From: Victor Toso Documentation for gdk_display_get_primary_monitor() says that it returns "the primary monitor, or NULL if no primary monitor is configured by the user". If monitor endup being NULL, we endup using unitialized GdkRectangle geom later on as gdk_monitor_get_geometry() will fail wi

Re: [Spice-devel] [spice-gtk v1] widget: mouse: Fix getting coordinates

2019-02-22 Thread Victor Toso
On Tue, Feb 12, 2019 at 04:36:17PM +, Victor Toso wrote: > From: Victor Toso > > Documentation for gdk_display_get_primary_monitor() says that it > returns "the primary monitor, or NULL if no primary monitor is > configured by the user". > > If monitor endup being NULL, we endup using uniti

Re: [Spice-devel] [spice-gtk v1] widget: mouse: Fix getting coordinates

2019-02-22 Thread Frediano Ziglio
> > On Tue, Feb 12, 2019 at 04:36:17PM +, Victor Toso wrote: > > From: Victor Toso > > > > Documentation for gdk_display_get_primary_monitor() says that it > > returns "the primary monitor, or NULL if no primary monitor is > > configured by the user". > > > > If monitor endup being NULL, we

Re: [Spice-devel] [spice-gtk v1] widget: mouse: Fix getting coordinates

2019-02-22 Thread Victor Toso
Hi, On Fri, Feb 22, 2019 at 08:47:42AM -0500, Frediano Ziglio wrote: > > > > On Tue, Feb 12, 2019 at 04:36:17PM +, Victor Toso wrote: > > > From: Victor Toso > > > > > > Documentation for gdk_display_get_primary_monitor() says that it > > > returns "the primary monitor, or NULL if no primar

Re: [Spice-devel] [spice-gtk v1] widget: mouse: Fix getting coordinates

2019-02-22 Thread Frediano Ziglio
> Hi, > > On Fri, Feb 22, 2019 at 08:47:42AM -0500, Frediano Ziglio wrote: > > > > > > On Tue, Feb 12, 2019 at 04:36:17PM +, Victor Toso wrote: > > > > From: Victor Toso > > > > > > > > Documentation for gdk_display_get_primary_monitor() says that it > > > > returns "the primary monitor, or

Re: [Spice-devel] [spice-gtk v1] widget: mouse: Fix getting coordinates

2019-02-22 Thread Victor Toso
Hi, On Fri, Feb 22, 2019 at 09:06:52AM -0500, Frediano Ziglio wrote: > > Hi, > > > > On Fri, Feb 22, 2019 at 08:47:42AM -0500, Frediano Ziglio wrote: > > > > > > > > On Tue, Feb 12, 2019 at 04:36:17PM +, Victor Toso wrote: > > > > > From: Victor Toso > > > > > > > > > > Documentation for g

Re: [Spice-devel] [spice-gtk v1] widget: mouse: Fix getting coordinates

2019-02-22 Thread Frediano Ziglio
> > Hi, > > On Fri, Feb 22, 2019 at 09:06:52AM -0500, Frediano Ziglio wrote: > > > Hi, > > > > > > On Fri, Feb 22, 2019 at 08:47:42AM -0500, Frediano Ziglio wrote: > > > > > > > > > > On Tue, Feb 12, 2019 at 04:36:17PM +, Victor Toso wrote: > > > > > > From: Victor Toso > > > > > > > > >