GNOME Bugzilla – Bug 693338
wayland: skip pointer and keyboard events without a surface
Last modified: 2013-02-12 15:46:48 UTC
Pointer and keyboard events can be received after the surface has been destroyed, in which case the surface will be NULL.
Created attachment 235418 [details] [review] wayland: skip pointer and keyboard events without a surface Pointer and keyboard events can be received after the surface has been destroyed, in which case the surface will be NULL.
Review of attachment 235418 [details] [review]: looks fine to me, but I'm not a wayland expert
Review of attachment 235418 [details] [review]: Yes. We need to do this since after the object has been destroyed in the client i.e. wl_surface_destroy the compositor may still send events for that object. Since the object has been destroyed the client library doesn't know what proxy (client side representation of remote object) to map the integer object id to so it uses NULL for the object pointer.
Attachment 235418 [details] pushed as bfd7137 - wayland: skip pointer and keyboard events without a surface