shell: Support maximize and fullscreen requests
This commit is contained in:
parent
f59bb8a06e
commit
bb07ab4155
5 changed files with 166 additions and 103 deletions
|
|
@ -107,6 +107,12 @@ impl CosmicMapped {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn set_active(&self, window: &Window) {
|
||||
if let CosmicMappedInternal::Stack(stack) = &self.element {
|
||||
stack.set_active(window);
|
||||
}
|
||||
}
|
||||
|
||||
pub fn focus_window(&self, window: &Window) {
|
||||
match &self.element {
|
||||
CosmicMappedInternal::Stack(stack) => stack.set_active(window),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue