mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-23 02:16:33 +11:00
x11: NewEvents(StartCause::Init) callback at start
Before starting the event loop, invoke callback with NewEvents(StartCause::Init).
This commit is contained in:
parent
f5c624bcd6
commit
1ea29b4de0
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue