diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-07-08 10:06:06 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-07-08 10:06:06 +0400 |
| commit | 887ca971ab1ffcb1f1b217315b4eb37d9041253b (patch) | |
| tree | b0f63de7b6abb0cfbfd7a1a4555161af042cf7ad /src/ui | |
| parent | 4cc195b681172f173c18eaf00261c2888f89b9c5 (diff) | |
| download | niri-887ca971ab1ffcb1f1b217315b4eb37d9041253b.tar.gz niri-887ca971ab1ffcb1f1b217315b4eb37d9041253b.tar.bz2 niri-887ca971ab1ffcb1f1b217315b4eb37d9041253b.zip | |
Use is_alive()
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/hotkey_overlay.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/hotkey_overlay.rs b/src/ui/hotkey_overlay.rs index 6e5f24fa..255658bb 100644 --- a/src/ui/hotkey_overlay.rs +++ b/src/ui/hotkey_overlay.rs @@ -87,7 +87,7 @@ impl HotkeyOverlay { let output_size = output_size(output); let mut buffers = self.buffers.borrow_mut(); - buffers.retain(|output, _| output.upgrade().is_some()); + buffers.retain(|output, _| output.is_alive()); // FIXME: should probably use the working area rather than view size. let weak = output.downgrade(); |
