Pass WindowHandle by value to window::run_with_handle

This commit is contained in:
Héctor Ramón Jiménez 2024-05-08 23:14:37 +02:00
parent 7e7af91e6f
commit 718fe5b7de
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
4 changed files with 4 additions and 4 deletions

View file

@ -1050,7 +1050,7 @@ pub fn run_command<A, C, E>(
use window::raw_window_handle::HasWindowHandle;
if let Ok(handle) = window.window_handle() {
proxy.send(tag(&handle));
proxy.send(tag(handle));
}
}

View file

@ -1223,7 +1223,7 @@ fn run_command<A, C, E>(
.get_mut(id)
.and_then(|window| window.raw.window_handle().ok())
{
proxy.send(tag(&handle));
proxy.send(tag(handle));
}
}
window::Action::Screenshot(id, tag) => {