Skip to content

Commit

Permalink
Add suspended and resumed events.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvc94ch committed Feb 6, 2020
1 parent 85373e7 commit e179a70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/platform_impl/linux/wayland/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ impl<T: 'static> EventLoop<T> {
&self.window_target,
&mut control_flow,
);
callback(Event::Resumed, &self.window_target, &mut control_flow);

loop {
// Read events from the event queue
Expand Down Expand Up @@ -623,6 +624,7 @@ impl<T: 'static> EventLoop<T> {
}
}

callback(Event::Suspended, &self.window_target, &mut control_flow);
callback(Event::LoopDestroyed, &self.window_target, &mut control_flow);
}

Expand Down

0 comments on commit e179a70

Please sign in to comment.