shell/wayland: Enable xdg/kde-decoration protocols
This commit is contained in:
parent
7992ad67f6
commit
78ffe3a93d
6 changed files with 195 additions and 39 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue