wayland: don't store direct output references
This commit is contained in:
parent
0605438d56
commit
4651f760f0
13 changed files with 123 additions and 65 deletions
|
|
@ -60,11 +60,14 @@ impl ZxdgOutputV1 {
|
|||
}
|
||||
|
||||
pub fn send_updates(&self) {
|
||||
let pos = self.output.global.position();
|
||||
let Some(global) = self.output.global.get() else {
|
||||
return;
|
||||
};
|
||||
let pos = global.position();
|
||||
self.send_logical_position(pos.x1(), pos.y1());
|
||||
self.send_logical_size(pos.width(), pos.height());
|
||||
if self.version >= NAME_SINCE {
|
||||
self.send_name(&self.output.global.connector.name);
|
||||
self.send_name(&global.connector.name);
|
||||
}
|
||||
if self.version >= NO_DONE_SINCE {
|
||||
if self.output.version >= SEND_DONE_SINCE {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue