mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
Add toggle-window-rule-opacity action
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user