aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-03-04 07:57:31 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-03-04 07:57:31 +0000
commite9d8ade5cc1b00f8790096138413694cad13c11e (patch)
treedac3e6e94693d37f38dd2f12648ab2ec29ceffda /input.c
parentinput: exit URLs mode on mouse button events (diff)
input: mutter has been seen sending NULL surfaces in pointer enter
Diffstat (limited to 'input.c')
-rw-r--r--input.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/input.c b/input.c
index 601f8267..d8a9333b 100644
--- a/input.c
+++ b/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;