From 6adef7fa06cbe6c474b33b1e77971d28670b6b75 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Thu, 21 May 2026 16:10:04 -0500 Subject: [PATCH] trace: Don't try to show details when there's no focus client This can turn into a NULL pointer dereference, and the values aren't meaningful in this state anyway. Signed-off-by: Derek Foreman --- libweston/input.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/libweston/input.c b/libweston/input.c index 265dd0834..ee6c126e2 100644 --- a/libweston/input.c +++ b/libweston/input.c @@ -569,11 +569,7 @@ pointer_send_relative_motion(struct weston_pointer *pointer, if (!pointer->focus_client) { WESTON_TRACE_ANNOTATE_FUNC_FLOW(event->base.flow_id, ("discard relative pointer motion", - "missing focus client"), - ("internal_name", pointer->focus->internal_name), - ("label", pointer->focus->surface->label), - ("pointer sx", pointer->sx), - ("pointer sy", pointer->sy)); + "missing focus client")); return; }