[PATCH] compositor-wayland: Ignore pointer enter on destroyed surface

Pekka Paalanen ppaalanen at gmail.com
Fri Mar 9 14:21:25 UTC 2018


On Fri, 9 Mar 2018 14:14:11 +0000
Daniel Stone <daniel at fooishbar.org> wrote:

> Hi,
> 
> On 9 March 2018 at 14:08, Pekka Paalanen <ppaalanen at gmail.com> wrote:
> > On Fri,  9 Mar 2018 10:08:37 +0000
> > Daniel Stone <daniels at collabora.com> wrote:  
> >> +     if (!surface) {
> >> +             input->output = NULL;
> >> +             input->has_focus = false;
> >> +             notify_pointer_focus(&input->base, NULL, 0, 0);
> >> +             input_set_cursor(input);
> >> +             return;
> >> +     }
> >> +
> >>       x = wl_fixed_to_double(fixed_x);
> >>       y = wl_fixed_to_double(fixed_y);
> >>  
> >
> > Hi Daniel,
> >
> > looks good, but what is the input_set_cursor() call doing there?  
> 
> Pure cargo-cult from the bottom of the function here. I guess it's
> probably unlikely to be helpful: if we've already destroyed the
> surface, there's little to no point setting a cursor on it. So I think
> it can, in fact, be removed.

Cool, I made that change, and pushed:
   72e183bd..3f839374  master -> master


Thanks,
pq
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/wayland-devel/attachments/20180309/a76ef687/attachment.sig>


More information about the wayland-devel mailing list