diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index 48b9faf4..d267cde2 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -1849,7 +1849,8 @@ common_surface_resize(struct wl_resource *resource, struct shell_surface *shsurf = wl_resource_get_user_data(resource); struct weston_surface *surface; - if (seat->pointer->button_count == 0 || + if (seat->pointer == NULL || + seat->pointer->button_count == 0 || seat->pointer->grab_serial != serial || seat->pointer->focus == NULL) return;