Skip to content

Commit

Permalink
Plug received_url in winit::program
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Aug 1, 2024
1 parent fd593f8 commit 169667e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions winit/src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,23 @@ where
);
}

fn received_url(
&mut self,
event_loop: &winit::event_loop::ActiveEventLoop,
url: String,
) {
self.process_event(
event_loop,
Event::EventLoopAwakened(
winit::event::Event::PlatformSpecific(
winit::event::PlatformSpecific::MacOS(
winit::event::MacOS::ReceivedUrl(url),
),
),
),
);
}

fn about_to_wait(
&mut self,
event_loop: &winit::event_loop::ActiveEventLoop,
Expand Down

0 comments on commit 169667e

Please sign in to comment.