shell/wayland: Enable xdg/kde-decoration protocols

This commit is contained in:
Victoria Brekenfeld 2023-01-16 20:31:43 +01:00
parent 7992ad67f6
commit 78ffe3a93d
6 changed files with 195 additions and 39 deletions

View file

@ -422,6 +422,20 @@ impl CosmicMapped {
window.close();
}
pub fn is_window(&self) -> bool {
match &self.element {
CosmicMappedInternal::Window(_) => true,
_ => false,
}
}
pub fn is_stack(&self) -> bool {
match &self.element {
CosmicMappedInternal::Stack(_) => true,
_ => false,
}
}
#[cfg(feature = "debug")]
pub fn set_debug(&self, flag: bool) {
let mut debug = self.debug.lock().unwrap();