mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-24 19:18:15 +02:00
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:
parent
a276db50f8
commit
6adef7fa06
1 changed files with 1 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue