mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
Use is_alive()
This commit is contained in:
@@ -87,7 +87,7 @@ impl HotkeyOverlay {
|
|||||||
let output_size = output_size(output);
|
let output_size = output_size(output);
|
||||||
|
|
||||||
let mut buffers = self.buffers.borrow_mut();
|
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.
|
// FIXME: should probably use the working area rather than view size.
|
||||||
let weak = output.downgrade();
|
let weak = output.downgrade();
|
||||||
|
|||||||
Reference in New Issue
Block a user