mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-11 21:31:29 +11:00
Merge pull request #1031 from rikusalminen/event_loop_test
Add NewEvents(Init) callback to x11
This commit is contained in:
commit
5ca828d445
|
@ -249,6 +249,12 @@ impl<T: 'static> EventLoop<T> {
|
|||
let mut control_flow = ControlFlow::default();
|
||||
let wt = get_xtarget(&self.target);
|
||||
|
||||
callback(
|
||||
crate::event::Event::NewEvents(crate::event::StartCause::Init),
|
||||
&self.target,
|
||||
&mut control_flow,
|
||||
);
|
||||
|
||||
loop {
|
||||
// Empty the event buffer
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue