mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
input: mutter has been seen sending NULL surfaces in pointer enter
This commit is contained in:
parent
81b5d476a9
commit
e9d8ade5cc
1 changed files with 5 additions and 0 deletions
5
input.c
5
input.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue