input: mutter has been seen sending NULL surfaces in pointer enter

This commit is contained in:
Daniel Eklöf 2021-03-04 08:57:31 +01:00
parent 81b5d476a9
commit e9d8ade5cc
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1162,6 +1162,11 @@ wl_pointer_enter(void *data, struct wl_pointer *wl_pointer,
{
xassert(surface != NULL);
if (surface == NULL) {
/* Seen on mutter-3.38 */
return;
}
struct seat *seat = data;
struct wl_window *win = wl_surface_get_user_data(surface);
struct terminal *term = win->term;