Skip to content
Snippets Groups Projects
Commit eb732457 authored by Emmanuel Gil Peyrot's avatar Emmanuel Gil Peyrot
Browse files

Prevent a race between surface destruction and focus

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.
parent 973bf296
Branches
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment