Add toggle-window-rule-opacity action

This commit is contained in:
Ivan Molodetskikh
2025-01-23 10:40:52 +03:00
parent b01b8afa8c
commit a10705fb20
13 changed files with 115 additions and 2 deletions
+8
View File
@@ -406,6 +406,14 @@ impl<W: LayoutElement> Workspace<W> {
}
}
pub fn active_window_mut(&mut self) -> Option<&mut W> {
if self.floating_is_active.get() {
self.floating.active_window_mut()
} else {
self.scrolling.active_window_mut()
}
}
pub fn is_active_fullscreen(&self) -> bool {
self.scrolling.is_active_fullscreen()
}