Skip to content

Commit

Permalink
Emit Suspend/Resume.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvc94ch committed Feb 12, 2020
1 parent 84eedfb commit 8cc2fc3
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 @@ -466,6 +466,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 @@ -626,6 +627,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 8cc2fc3

Please sign in to comment.