Set the Command's target in context.
@@ -681,7 +681,8 @@ impl<'a> ContextState<'a> {
}
fn submit_command(&mut self, command: Command) {
- self.command_queue.push_back(command)
+ self.command_queue
+ .push_back(command.default_to(self.window_id));
}
fn set_menu<T: Any>(&mut self, menu: MenuDesc<T>) {
