Have EventLoopClosed contain the original event (#1294)
* Fix issue #1292 * Remove "optionally" from changelog entry
This commit is contained in:
parent
1a514dff38
commit
830d47a5f7
10 changed files with 43 additions and 20 deletions
|
|
@ -650,7 +650,7 @@ impl<T: 'static> EventLoop<T> {
|
|||
}
|
||||
|
||||
impl<T: 'static> EventLoopProxy<T> {
|
||||
pub fn send_event(&self, event: T) -> Result<(), EventLoopClosed> {
|
||||
pub fn send_event(&self, event: T) -> Result<(), EventLoopClosed<T>> {
|
||||
match *self {
|
||||
EventLoopProxy::Wayland(ref proxy) => proxy.send_event(event),
|
||||
EventLoopProxy::X(ref proxy) => proxy.send_event(event),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue