Skip to content
Snippets Groups Projects
Select Git revision
  • eb732457ea6bcf0d29c38c7558f54da740304464
  • for-vairdraw default protected
  • multi-context-windows
3 results

wl_init.c

  • Emmanuel Gil Peyrot's avatar
    eb732457
    Prevent a race between surface destruction and focus · eb732457
    Emmanuel Gil Peyrot authored
    The Wayland protocol is asynchronous, by the time we destroy a surface,
    the compositor may have sent a wl_keyboard::enter or wl_pointer::enter
    events which now point to no surface, yet we receive it after.
    
    To prevent this race, we can just ignore any enter event targetting a
    NULL surface.
    
    Fixes #1150.
    eb732457
    History
    Prevent a race between surface destruction and focus
    Emmanuel Gil Peyrot authored
    The Wayland protocol is asynchronous, by the time we destroy a surface,
    the compositor may have sent a wl_keyboard::enter or wl_pointer::enter
    events which now point to no surface, yet we receive it after.
    
    To prevent this race, we can just ignore any enter event targetting a
    NULL surface.
    
    Fixes #1150.