mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-17 04:15:44 +00:00
st/gui: Prober or tracking is no longer needed for debug sink
This commit is contained in:
parent
6627049af3
commit
be5b9c9d88
|
@ -396,16 +396,11 @@ on_elem_sink_debug_add(struct u_var_info *info, void *priv)
|
||||||
{
|
{
|
||||||
void *ptr = info->ptr;
|
void *ptr = info->ptr;
|
||||||
enum u_var_kind kind = info->kind;
|
enum u_var_kind kind = info->kind;
|
||||||
struct gui_program *p = ((struct priv_tuple *)priv)->p;
|
|
||||||
|
|
||||||
if (kind != U_VAR_KIND_SINK_DEBUG) {
|
if (kind != U_VAR_KIND_SINK_DEBUG) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p->xp == NULL || p->xp->tracking == NULL) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct u_sink_debug *usd = (struct u_sink_debug *)ptr;
|
struct u_sink_debug *usd = (struct u_sink_debug *)ptr;
|
||||||
struct debug_scene *ds = ((struct priv_tuple *)priv)->ds;
|
struct debug_scene *ds = ((struct priv_tuple *)priv)->ds;
|
||||||
struct debug_record *dr = &ds->recs[ds->num_recrs++];
|
struct debug_record *dr = &ds->recs[ds->num_recrs++];
|
||||||
|
|
Loading…
Reference in a new issue