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:15:55 +0000 |
| commit | 20b8ca1601a8a80770110860ae70d4487c95081b (patch) | |
| tree | 9d173b16b5945b9a6bdebafca62a373afba008c6 /spawn.h | |
| 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 'spawn.h')
0 files changed, 0 insertions, 0 deletions
