stacking: header

This commit is contained in:
Victoria Brekenfeld 2023-06-08 13:19:30 +02:00
parent b3401eb18a
commit e73ebd4413
13 changed files with 686 additions and 123 deletions

View file

@ -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) => {