Skip to content

Commit

Permalink
Gtk: wake the main context in EventLoopProxy::send_event(), closes #625
Browse files Browse the repository at this point in the history
… (#626)

* Gtk: wake the main context in EventLoopProxy::send_event()

* Cargo fmt

* Add change file

Co-authored-by: Wu Yu Wei <wusyong9104@gmail.com>
  • Loading branch information
jfaust and Wu Yu Wei committed Nov 17, 2022
1 parent 188d0f7 commit b7b5f04
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/loop-proxy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tao": patch
---

On Linux, wake the main context in `EventLoopProxy::send_event()`.

7 changes: 6 additions & 1 deletion src/platform_impl/linux/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,12 @@ impl<T: 'static> EventLoopProxy<T> {
} else {
unreachable!();
}
})
})?;

let context = MainContext::default();
context.wakeup();

Ok(())
}
}

Expand Down

0 comments on commit b7b5f04

Please sign in to comment.