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
commit 5ca828d445
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -249,6 +249,12 @@ impl<T: 'static> EventLoop<T> {
let mut control_flow = ControlFlow::default(); let mut control_flow = ControlFlow::default();
let wt = get_xtarget(&self.target); let wt = get_xtarget(&self.target);
callback(
crate::event::Event::NewEvents(crate::event::StartCause::Init),
&self.target,
&mut control_flow,
);
loop { loop {
// Empty the event buffer // Empty the event buffer
{ {