add window::Id to Event and Action
This commit is contained in:
parent
974cc6b6f5
commit
0ad53a3d5c
11 changed files with 99 additions and 78 deletions
|
|
@ -502,6 +502,7 @@ async fn run_instance<A, E, C>(
|
|||
state.update(&window, &window_event, &mut debug);
|
||||
|
||||
if let Some(event) = conversion::window_event(
|
||||
crate::window::Id::MAIN,
|
||||
&window_event,
|
||||
state.scale_factor(),
|
||||
state.modifiers(),
|
||||
|
|
@ -667,7 +668,7 @@ pub fn run_command<A, E>(
|
|||
clipboard.write(contents);
|
||||
}
|
||||
},
|
||||
command::Action::Window(action) => match action {
|
||||
command::Action::Window(_id, action) => match action {
|
||||
window::Action::Close => {
|
||||
*should_exit = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue