1
0
Fork 0
forked from wry/wry

autocommit 2022-04-20 16:11:37 CEST

This commit is contained in:
Julian Orth 2022-04-20 16:11:37 +02:00
parent fa1ec0b36c
commit ab3c2e44f4
19 changed files with 409 additions and 210 deletions

View file

@ -891,6 +891,16 @@ impl SizedNode for WlSurface {
fn is_xwayland_surface(&self) -> bool {
self.client.is_xwayland
}
fn set_fullscreen(self: &Rc<Self>, fullscreen: bool) {
if let Some(tl) = self.toplevel.get() {
tl.set_fullscreen(fullscreen);
}
}
fn fullscreen(&self) -> bool {
self.toplevel.get().map(|tl| tl.fullscreen()).unwrap_or(false)
}
}
#[derive(Debug, Error)]