winit-sonoma-fix/src
alvinhochun 644dc13e00
web: Emit WindowEvent::Resized on Window::set_inner_size (#1717)
* web: Allow event to be queued from inside the EventLoop handler

The Runner is behind a RefCell, which is mutably borrowed when the event
handler is being called. To queue events, `send_events` needs to check
`is_closed()` and the `is_busy` flag, but it cannot be done since the
RefCell is already locked. This commit changes the conditions to work
without needing a successful borrow.

* web: Emit WindowEvent::Resized on Window::set_inner_size

* Update changelog
2020-09-21 18:19:00 -04:00
..
platform [macos] add NSWindow.hasShadow support (#1637) 2020-08-13 11:10:34 -07:00
platform_impl web: Emit WindowEvent::Resized on Window::set_inner_size (#1717) 2020-09-21 18:19:00 -04:00
dpi.rs Handle scale factor change on web-sys backend (#1690) 2020-08-30 09:15:44 -04:00
error.rs Always use f as the argument name for &mut std::fmt::Formatter (#1023) 2019-07-09 17:49:07 -04:00
event.rs Prefix numpad virtual key codes with Numpad 2020-09-20 12:58:24 +03:00
event_loop.rs Make 'primary_monitor' return 'Option<MonitorHandle>' 2020-09-07 20:20:47 +03:00
icon.rs Add ability to create Icons from embedded resources on Windows (#1410) 2020-03-07 14:42:21 -05:00
lib.rs Fix misspellings in comments (#1618) 2020-07-09 08:08:26 -07:00
monitor.rs Fix misspellings in comments (#1618) 2020-07-09 08:08:26 -07:00
window.rs Make 'primary_monitor' return 'Option<MonitorHandle>' 2020-09-07 20:20:47 +03:00