Re-implement against latest iced master. Rename FetchNativeHandle.
This commit is contained in:
parent
6f97b62457
commit
7105992228
5 changed files with 47 additions and 0 deletions
|
|
@ -23,6 +23,8 @@ use crate::{Clipboard, Error, Proxy, Settings};
|
|||
|
||||
use futures::channel::mpsc;
|
||||
|
||||
use winit::raw_window_handle::HasWindowHandle;
|
||||
|
||||
use std::mem::ManuallyDrop;
|
||||
use std::sync::Arc;
|
||||
|
||||
|
|
@ -783,6 +785,13 @@ pub fn run_command<A, C, E>(
|
|||
.send_event(tag(window.id().into()))
|
||||
.expect("Send message to event loop");
|
||||
}
|
||||
window::Action::FetchNativeHandle(_id, tag) => {
|
||||
proxy
|
||||
.send_event(tag(&window
|
||||
.window_handle()
|
||||
.expect("Missing window handle")))
|
||||
.expect("Send message to event loop");
|
||||
}
|
||||
window::Action::Screenshot(_id, tag) => {
|
||||
let bytes = compositor.screenshot(
|
||||
renderer,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue