From a10705fb200b452802a1ba7cd47679536e0ef849 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Thu, 23 Jan 2025 10:40:52 +0300 Subject: Add toggle-window-rule-opacity action --- src/layout/workspace.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/layout/workspace.rs') 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 Workspace { } } + 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() } -- cgit