diff options
Diffstat (limited to 'src/layout/workspace.rs')
| -rw-r--r-- | src/layout/workspace.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/layout/workspace.rs b/src/layout/workspace.rs index f4c87342..4426c264 100644 --- a/src/layout/workspace.rs +++ b/src/layout/workspace.rs @@ -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() } |
