all: add missing object tracking
This commit is contained in:
parent
f94f199ab1
commit
555bd0a1bc
7 changed files with 11 additions and 1 deletions
|
|
@ -71,6 +71,7 @@ impl ExtIdleNotifierV1RequestHandler for ExtIdleNotifierV1 {
|
||||||
duration_usec: (req.timeout as u64).max(1000).saturating_mul(1000),
|
duration_usec: (req.timeout as u64).max(1000).saturating_mul(1000),
|
||||||
version: self.version,
|
version: self.version,
|
||||||
});
|
});
|
||||||
|
track!(self.client, notification);
|
||||||
self.client.add_client_obj(¬ification)?;
|
self.client.add_client_obj(¬ification)?;
|
||||||
let future = self.client.state.eng.spawn(run(notification.clone()));
|
let future = self.client.state.eng.spawn(run(notification.clone()));
|
||||||
notification.task.set(Some(future));
|
notification.task.set(Some(future));
|
||||||
|
|
|
||||||
|
|
@ -226,6 +226,7 @@ impl ZwpPointerConstraintsV1RequestHandler for ZwpPointerConstraintsV1 {
|
||||||
constraint,
|
constraint,
|
||||||
version: self.version,
|
version: self.version,
|
||||||
});
|
});
|
||||||
|
track!(self.client, lp);
|
||||||
self.client.add_client_obj(&lp)?;
|
self.client.add_client_obj(&lp)?;
|
||||||
lp.constraint.owner.set(Some(lp.clone()));
|
lp.constraint.owner.set(Some(lp.clone()));
|
||||||
lp.constraint
|
lp.constraint
|
||||||
|
|
@ -250,6 +251,7 @@ impl ZwpPointerConstraintsV1RequestHandler for ZwpPointerConstraintsV1 {
|
||||||
constraint,
|
constraint,
|
||||||
version: self.version,
|
version: self.version,
|
||||||
});
|
});
|
||||||
|
track!(self.client, lp);
|
||||||
self.client.add_client_obj(&lp)?;
|
self.client.add_client_obj(&lp)?;
|
||||||
lp.constraint.owner.set(Some(lp.clone()));
|
lp.constraint.owner.set(Some(lp.clone()));
|
||||||
lp.constraint
|
lp.constraint
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,7 @@ impl ZwpPointerGesturesV1RequestHandler for ZwpPointerGesturesV1 {
|
||||||
tracker: Default::default(),
|
tracker: Default::default(),
|
||||||
version: self.version,
|
version: self.version,
|
||||||
});
|
});
|
||||||
|
track!(self.client, obj);
|
||||||
self.client.add_client_obj(&obj)?;
|
self.client.add_client_obj(&obj)?;
|
||||||
seat.swipe_bindings.add(&self.client, &obj);
|
seat.swipe_bindings.add(&self.client, &obj);
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
@ -93,6 +94,7 @@ impl ZwpPointerGesturesV1RequestHandler for ZwpPointerGesturesV1 {
|
||||||
tracker: Default::default(),
|
tracker: Default::default(),
|
||||||
version: self.version,
|
version: self.version,
|
||||||
});
|
});
|
||||||
|
track!(self.client, obj);
|
||||||
self.client.add_client_obj(&obj)?;
|
self.client.add_client_obj(&obj)?;
|
||||||
seat.pinch_bindings.add(&self.client, &obj);
|
seat.pinch_bindings.add(&self.client, &obj);
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
@ -112,6 +114,7 @@ impl ZwpPointerGesturesV1RequestHandler for ZwpPointerGesturesV1 {
|
||||||
tracker: Default::default(),
|
tracker: Default::default(),
|
||||||
version: self.version,
|
version: self.version,
|
||||||
});
|
});
|
||||||
|
track!(self.client, obj);
|
||||||
self.client.add_client_obj(&obj)?;
|
self.client.add_client_obj(&obj)?;
|
||||||
seat.hold_bindings.add(&self.client, &obj);
|
seat.hold_bindings.add(&self.client, &obj);
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ impl WpAlphaModifierV1RequestHandler for WpAlphaModifierV1 {
|
||||||
&surface,
|
&surface,
|
||||||
self.version,
|
self.version,
|
||||||
));
|
));
|
||||||
track!(self.client, surface);
|
track!(self.client, modifier);
|
||||||
self.client.add_client_obj(&modifier)?;
|
self.client.add_client_obj(&modifier)?;
|
||||||
modifier.install()?;
|
modifier.install()?;
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
|
||||||
|
|
@ -123,6 +123,7 @@ impl WpDrmLeaseDeviceV1 {
|
||||||
connector_id: output.connector.connector.id(),
|
connector_id: output.connector.connector.id(),
|
||||||
bindings: output.lease_connectors.clone(),
|
bindings: output.lease_connectors.clone(),
|
||||||
});
|
});
|
||||||
|
track!(self.client, obj);
|
||||||
self.client.add_server_obj(&obj);
|
self.client.add_server_obj(&obj);
|
||||||
self.send_connector(&obj);
|
self.send_connector(&obj);
|
||||||
obj.send_name(&output.connector.name);
|
obj.send_name(&output.connector.name);
|
||||||
|
|
@ -172,6 +173,7 @@ impl WpDrmLeaseDeviceV1RequestHandler for WpDrmLeaseDeviceV1 {
|
||||||
device: self.device,
|
device: self.device,
|
||||||
connectors: Default::default(),
|
connectors: Default::default(),
|
||||||
});
|
});
|
||||||
|
track!(self.client, obj);
|
||||||
self.client.add_client_obj(&obj)?;
|
self.client.add_client_obj(&obj)?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,7 @@ impl WpDrmLeaseRequestV1RequestHandler for WpDrmLeaseRequestV1 {
|
||||||
finished: Cell::new(false),
|
finished: Cell::new(false),
|
||||||
lease: Default::default(),
|
lease: Default::default(),
|
||||||
});
|
});
|
||||||
|
track!(self.client, obj);
|
||||||
self.client.add_client_obj(&obj)?;
|
self.client.add_client_obj(&obj)?;
|
||||||
if self.connectors.is_empty() {
|
if self.connectors.is_empty() {
|
||||||
return Err(WpDrmLeaseRequestV1Error::EmptyLease);
|
return Err(WpDrmLeaseRequestV1Error::EmptyLease);
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,7 @@ impl WpLinuxDrmSyncobjManagerV1RequestHandler for WpLinuxDrmSyncobjManagerV1 {
|
||||||
&sync_obj,
|
&sync_obj,
|
||||||
self.version,
|
self.version,
|
||||||
));
|
));
|
||||||
|
track!(self.client, sync);
|
||||||
self.client.add_client_obj(&sync)?;
|
self.client.add_client_obj(&sync)?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue