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 <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2026-05-21 16:10:04 -05:00
parent a276db50f8
commit 6adef7fa06

View file

@ -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;
}