diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-01-23 10:40:52 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-01-23 11:13:55 +0300 |
| commit | a10705fb200b452802a1ba7cd47679536e0ef849 (patch) | |
| tree | 7e12f0602c4652e043021392632e7e4e24ebb4fe /src/layout/workspace.rs | |
| parent | b01b8afa8c8f9070300243050d9790e38fd19145 (diff) | |
| download | niri-a10705fb200b452802a1ba7cd47679536e0ef849.tar.gz niri-a10705fb200b452802a1ba7cd47679536e0ef849.tar.bz2 niri-a10705fb200b452802a1ba7cd47679536e0ef849.zip | |
Add toggle-window-rule-opacity action
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() } |
