autocommit 2022-04-20 16:11:37 CEST
This commit is contained in:
parent
fa1ec0b36c
commit
ab3c2e44f4
19 changed files with 409 additions and 210 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue