mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-27 15:13:13 -04:00
On Web, wake event loop on request_redraw()
This commit is contained in:
@@ -69,6 +69,7 @@ And please only add new entries to the top of this list, right below the `# Unre
|
||||
# 0.28.3
|
||||
|
||||
- Fix macOS memory leaks.
|
||||
- On Web: fix `Window::request_redraw` not waking the event loop when called from outside the loop.
|
||||
|
||||
# 0.28.2
|
||||
|
||||
|
||||
@@ -157,6 +157,7 @@ impl<T: 'static> Shared<T> {
|
||||
|
||||
pub fn request_redraw(&self, id: WindowId) {
|
||||
self.0.redraw_pending.borrow_mut().insert(id);
|
||||
self.send_events(iter::empty());
|
||||
}
|
||||
|
||||
pub fn init(&self) {
|
||||
|
||||
Reference in New Issue
Block a user