1
0
Fork 0
forked from wry/wry

it: test workspace restoration

This commit is contained in:
Julian Orth 2024-04-03 14:37:03 +02:00
parent 9efe9415c2
commit 15a1b600f3
8 changed files with 165 additions and 53 deletions

View file

@ -553,6 +553,11 @@ impl WlSurface {
Ok(ext.into_xsurface().unwrap())
}
#[cfg_attr(not(feature = "it"), allow(dead_code))]
pub fn get_output(&self) -> Rc<OutputNode> {
self.output.get()
}
pub fn set_output(&self, output: &Rc<OutputNode>) {
let old = self.output.set(output.clone());
if old.id == output.id {