1
0
Fork 0
forked from wry/wry

it: test xdg-activation

This commit is contained in:
Julian Orth 2024-04-02 15:03:24 +02:00
parent 91022cd1c8
commit 6fe6b1b491
16 changed files with 239 additions and 23 deletions

View file

@ -33,14 +33,15 @@ impl TestJayCompositor {
}
}
pub async fn take_screenshot(&self) -> Result<Dmabuf, TestError> {
pub async fn take_screenshot(&self, include_cursor: bool) -> Result<Dmabuf, TestError> {
let js = Rc::new(TestJayScreenshot {
id: self.tran.id(),
result: Cell::new(None),
});
self.tran.send(TakeScreenshot {
self.tran.send(TakeScreenshot2 {
self_id: self.id,
id: js.id,
include_cursor: include_cursor as _,
})?;
self.tran.add_obj(js.clone())?;
self.tran.sync().await;