Merge pull request #1031 from rikusalminen/event_loop_test

Add NewEvents(Init) callback to x11
This commit is contained in:
Osspial
2019-07-10 11:29:21 -04:00
committed by GitHub

View File

@@ -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
{