Reconnect Clipboard on window close

Fixes #2564
This commit is contained in:
Héctor Ramón Jiménez 2024-09-03 11:23:54 +02:00
parent 9957481d41
commit 9628dc20d5
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 46 additions and 22 deletions

View file

@ -74,6 +74,10 @@ where
self.entries.is_empty()
}
pub fn first(&self) -> Option<&Window<P, C>> {
self.entries.first_key_value().map(|(_id, window)| window)
}
pub fn iter_mut(
&mut self,
) -> impl Iterator<Item = (Id, &mut Window<P, C>)> {