stacking: header
This commit is contained in:
parent
b3401eb18a
commit
e73ebd4413
13 changed files with 686 additions and 123 deletions
|
|
@ -189,6 +189,19 @@ impl CosmicSurface {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn try_force_undecorated(&self, enable: bool) {
|
||||
match self {
|
||||
CosmicSurface::Wayland(window) => window.toplevel().with_pending_state(|pending| {
|
||||
pending.decoration_mode = if enable {
|
||||
Some(DecorationMode::ServerSide)
|
||||
} else {
|
||||
None
|
||||
};
|
||||
}),
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_resizing(&self, pending: bool) -> Option<bool> {
|
||||
match self {
|
||||
CosmicSurface::Wayland(window) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue