diff options
| author | 2021-03-10 21:13:07 +0100 | |
|---|---|---|
| committer | 2021-03-10 21:13:07 +0100 | |
| commit | 7eb512774862d44772c43f9843f586bfcfa2aa89 (patch) | |
| tree | 34d64096302f59f8cb6daf35a131d8ba42f46905 /glutin/src | |
| parent | 939fcfe9dbe8c08a286c6328da6053b5fd577adf (diff) | |
| parent | 17dcfa8faf68afe3cbad1151f41eb35230ef83e1 (diff) | |
| download | iced-7eb512774862d44772c43f9843f586bfcfa2aa89.tar.gz iced-7eb512774862d44772c43f9843f586bfcfa2aa89.tar.bz2 iced-7eb512774862d44772c43f9843f586bfcfa2aa89.zip | |
Merge pull request #770 from hecrj/feature/clipboard-write
Write clipboard support and `TextInput` copy and cut behavior
Diffstat (limited to '')
| -rw-r--r-- | glutin/src/application.rs | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/glutin/src/application.rs b/glutin/src/application.rs index 42513feb..19eee219 100644 --- a/glutin/src/application.rs +++ b/glutin/src/application.rs @@ -136,7 +136,7 @@ async fn run_instance<A, E, C>(      use glutin::event;      use iced_winit::futures::stream::StreamExt; -    let clipboard = Clipboard::new(context.window()); +    let mut clipboard = Clipboard::connect(context.window());      let mut state = application::State::new(&application, context.window());      let mut viewport_version = state.viewport_version(); @@ -170,8 +170,8 @@ async fn run_instance<A, E, C>(                  let statuses = user_interface.update(                      &events,                      state.cursor_position(), -                    clipboard.as_ref().map(|c| c as _),                      &mut renderer, +                    &mut clipboard,                      &mut messages,                  ); | 
