diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-08-12 14:13:25 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-08-12 14:13:25 +0000 |
| commit | 45803791cfd466a68968e22d38515474585301ba (patch) | |
| tree | 9d173b16b5945b9a6bdebafca62a373afba008c6 /selection.c | |
| parent | wayland: #ifdef on XDG_TOPLEVEL_CONFIGURE_BOUNDS_SINCE_VERSION (diff) | |
input: ignore pointer motion events on unknown surfaces
In some cases, the compositor sends a pointer enter event with a NULL
surface. It’s unclear if this is a compositor bug, or a race (where
the compositor sends an enter event on a CSD surface at the same time
foot unmaps the CSDs). Regardless, this causes seat->mouse_focus to be
unset, which triggers a crash in foot on the next pointer motion
event.
This patch does two things:
a) log a warning when we receive a pointer event with a NULL surface
b) ignore motion events where seat->mouse_focus is NULL
Diffstat (limited to 'selection.c')
0 files changed, 0 insertions, 0 deletions
