plexus
plexus copied to clipboard
Update winit requirement from ^0.23.0 to ^0.27.2
Updates the requirements on winit to permit the latest version.
Release notes
Sourced from winit's releases.
Winit Version v0.27.2
- On macOS, fixed touch phase reporting when scrolling.
- On X11, fix min, max and resize increment hints not persisting for resizable windows (e.g. on DPI change).
- On Windows, respect min/max inner sizes when creating the window.
- For backwards compatibility,
Windownow (additionally) implements the old version (0.4) of theHasRawWindowHandletrait- On Windows, added support for
EventLoopWindowTarget::set_device_event_filter.- On Wayland, fix user requested
WindowEvent::RedrawRequestedbeing delayed by a frame.
Changelog
Sourced from winit's changelog.
0.27.2 (2022-8-12)
- On macOS, fixed touch phase reporting when scrolling.
- On X11, fix min, max and resize increment hints not persisting for resizable windows (e.g. on DPI change).
- On Windows, respect min/max inner sizes when creating the window.
- For backwards compatibility,
Windownow (additionally) implements the old version (0.4) of theHasRawWindowHandletrait- On Windows, added support for
EventLoopWindowTarget::set_device_event_filter.- On Wayland, fix user requested
WindowEvent::RedrawRequestedbeing delayed by a frame.0.27.1 (2022-07-30)
- The minimum supported Rust version was lowered to
1.57.0and now explicitly tested.- On X11, fix crash on start due to inability to create an IME context without any preedit.
0.27.0 (2022-07-26)
- On Windows, fix hiding a maximized window.
- On Android,
ndk-glue'sNativeWindowlock is now held betweenEvent::ResumedandEvent::Suspended.- On Web, added
EventLoopExtWebSyswith aspawnmethod to start the event loop without throwing an exception.- Added
WindowEvent::Occluded(bool), currently implemented on macOS and X11.- On X11, fix events for caps lock key not being sent
- Build docs on
docs.rsfor iOS and Android as well.- Breaking: Removed the
WindowAttributesstruct, since all its functionality is accessible fromWindowBuilder.- Added
WindowBuilder::transparentgetter to check if the user settransparentattribute.- On macOS, Fix emitting
Event::LoopDestroyedon CMD+Q.- On macOS, fixed an issue where having multiple windows would prevent run_return from ever returning.
- On Wayland, fix bug where the cursor wouldn't hide in GNOME.
- On macOS, Windows, and Wayland, add
set_cursor_hittestto let the window ignore mouse events.- On Windows, added
WindowExtWindows::set_skip_taskbarandWindowBuilderExtWindows::with_skip_taskbar.- On Windows, added
EventLoopBuilderExtWindows::with_msg_hook.- On Windows, remove internally unique DC per window.
- On macOS, remove the need to call
set_ime_positionafter moving the window.- Added
Window::is_visible.- Added
Window::is_resizable.- Added
Window::is_decorated.- On X11, fix for repeated event loop iteration when
ControlFlowwasWait- On X11, fix scale factor calculation when the only monitor is reconnected
- On Wayland, report unaccelerated mouse deltas in
DeviceEvent::MouseMotion.- On Web, a focused event is manually generated when a click occurs to emulate behaviour of other backends.
- Breaking: Bump
ndkversion to 0.6, ndk-sys tov0.3,ndk-glueto0.6.- Remove no longer needed
WINIT_LINK_COLORSYNCenvironment variable.- Breaking: Rename the
Exitvariant ofControlFlowtoExitWithCode, which holds a value to control the exit code after running. Add anExitconstant which aliases toExitWithCode(0)instead to avoid major breakage. This shouldn't affect most existing programs.- Add
EventLoopBuilder, which allows you to create and tweak the settings of an event loop before creating it.- Deprecated
EventLoop::with_user_event; useEventLoopBuilder::with_user_eventinstead.- Breaking: Replaced
EventLoopExtMacOSwithEventLoopBuilderExtMacOS(which also has renamed methods).- Breaking: Replaced
EventLoopExtWindowswithEventLoopBuilderExtWindows(which also has renamed methods).- Breaking: Replaced
EventLoopExtUnixwithEventLoopBuilderExtUnix(which also has renamed methods).- Breaking: The platform specific extensions for Windows
winit::platform::windowshave changed. AllHANDLE-like types e.g.HWNDandHMENUwere converted from winapi types or*mut c_voidtoisize. This was done to be consistent with the type definitions in windows-sys and to not expose internal dependencies.- The internal bindings to the Windows API were changed from the unofficial winapi bindings to the official Microsoft windows-sys bindings.
- On Wayland, fix polling during consecutive
EventLoop::run_returninvocations.
... (truncated)
Commits
2e4338bRelease 0.27.2 versionec2888bOn Wayland, fixWindow::request_redrawbeing delayedfa83bacRemove redundant steps from CIee7dc48Fix missleading breaking change on Windows11d4a30Implement version 0.4 of the HasRawWindowHandle traitad41eafAdd CODEOWNERS file (#2420)9b71df9On Windows, add opt-in function for device events (#2409)b1c9e4aFix tracking of phase changes for mousewheel on trackpad (#2158)cdbaf48On X11, fix window hints not persisting6b7ceedWindows: respect min/max sizes when creating the window (#2393)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)