fix(deps): update rust crate winit to 0.29#92
Open
renovate[bot] wants to merge 2 commits intomainfrom
Open
Conversation
e760505 to
0fdbb1f
Compare
0fdbb1f to
7b4a438
Compare
Contributor
Author
⚠ Artifact update problemRenovate failed to update artifacts related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: Cargo.lockFile name: Cargo.lock |
7b4a438 to
b2eb9ef
Compare
ca62554 to
ed71228
Compare
ed71228 to
fae9a7c
Compare
Contributor
Author
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.28->0.29Release Notes
rust-windowing/winit (winit)
v0.29.4Compare Source
drag_windowanddrag_resize_windowcan be called from another thread.set_control_flowinAboutToWaitnot being taken in account.Resizedevent after eachScaleFactorChangedevent.wl_surfacebeing destroyed before associated objects.Fnkey.v0.29.3Compare Source
PhysicalSizepassed inWindowBuilder::with_inner_sizewhen possible.RedrawRequstedbeing always sent without decorations andsctk-adwaitafeature.configure_boundsto constrainwith_inner_sizewhen compositor wants users to pick size.Cursor{Enter,Leave}.Window::set_transparent.Window::set_blur.v0.29.2Compare Source
1.60to1.65.Event::MemoryWarning; implemented on iOS/Android.ndkversion to0.8.0, ndk-sys to0.5.0,android-activityto0.5.0.ControlFlowfromPolltoWait.Event::RedrawRequestedtoWindowEvent::RedrawRequested.ControlFlow::ExittoEventLoopWindowTarget::exit()andEventLoopWindowTarget::exiting()and removedControlFlow::ExitWithCode(_)entirely.ControlFlowtoEventLoopWindowTarget::set_control_flow()andEventLoopWindowTarget::control_flow().EventLoop::newandEventLoopBuilder::buildnow returnResult<Self, EventLoopError>WINIT_UNIX_BACKENDwas removed in favor of standardWAYLAND_DISPLAYandDISPLAYvariables.DeviceEvent::Text.EventandWindowEvent.Window::set_inner_sizetoWindow::request_inner_sizeand indicate if the size was applied immediately.ActivationTokenDoneevent which could be requested with the newstartup_notifymodule, see its docs for more.ScaleFactorChangednow contains a writer instead of a reference to update inner size.run() -> !has been replaced byrun() -> Result<(), EventLoopError>for returning errors without callingstd::process::exit()(#2767)EventLoopExtRunReturn/run_returnin favor ofEventLoopExtPumpEvents/pump_eventsandEventLoopExtRunOnDemand/run_on_demand(#2767)RedrawRequestedis no longer guaranteed to be emitted afterMainEventsCleared, it is now platform-specific when the event is emitted after being requested viaredraw_request().RedrawRequestedis now driven byWM_PAINTmessages which are requested viaredraw_request()LoopDestroyedrenamed toLoopExiting(#2900)RedrawEventsClearedremoved (#2900)MainEventsClearedremoved (#2900)modifiersfields.DeviceEventFiltertoDeviceEventsreversing the behavior of variants.AboutToWaitevent which is emitted when the event loop is about to block and wait for new events (#2900)EventLoopWindowTarget::set_device_event_filtertolisten_device_events.Window::set_ime_positiontoWindow::set_ime_cursor_areaadding a way to set exclusive zone.with_x11_visualnow takes the visual ID instead of the bare pointer.MouseButtonnow supportsBackandForwardvariants, emitted from mouse events on Wayland, X11, Windows, macOS and Web.instantis now replaced byweb_time.WindowEvent::Resized.bitflagscrate version to2, which changes the API on exposed types.CursorIcon::Arrowwas removed.CursorIcon::Handis now namedCursorIcon::Pointer.CursorIconis now used from thecursor-iconcrate.WindowExtWebSys::canvas()now returns anOption.KeyboardInputwithKeyEventandRawKeyEvent.WindowEvent::KeyboardInputto contain aKeyEvent.Event::Keyto contain aRawKeyEvent.Event::ReceivedCharacter. In its place, you should useKeyEvent.textin combination withWindowEvent::Ime.VirtualKeyCodewith theKeyenum.ScanCodewith theKeyCodeenum.ModifiersState::LOGOtoSUPERandModifiersState::CTRLtoCONTROL.PhysicalKeywrappingKeyCodeandNativeKeyCode.KeyCodeto refer to keys (roughly) by their physical location.NativeKeyCodeto represent rawKeyCodes which Winit doesn'tunderstand.
Keyto represent the keys after they've been interpreted by theactive (software) keyboard layout.
NamedKeyto represent the categorized keys.NativeKeyto represent rawKeys which Winit doesn't understand.KeyLocationto tell apartKeys which usually "mean" the same thing,but can appear simultaneously in different spots on the same keyboard
layout.
Window::reset_dead_keysto enable application-controlled cancellationof dead key sequences.
KeyEventExtModifierSupplementto expose additional (and lessportable) interpretations of a given key-press.
PhysicalKeyExtScancode, which lets you convert between scancodes andPhysicalKey.ModifiersChangednow uses dedicatedModifiersstruct.raw-window-handletrait implementations instead:platform::windows::HINSTANCE.WindowExtWindows::hinstance.WindowExtWindows::hwnd.WindowExtIOS::ui_window.WindowExtIOS::ui_view_controller.WindowExtIOS::ui_view.WindowExtMacOS::ns_window.WindowExtMacOS::ns_view.EventLoopWindowTargetExtWayland::wayland_display.WindowExtWayland::wayland_surface.WindowExtWayland::wayland_display.WindowExtX11::xlib_window.WindowExtX11::xlib_display.WindowExtX11::xlib_screen_id.WindowExtX11::xcb_connection.raw-window-handleinwindowmodule.ElementState::is_pressed.Window::pre_present_notifyto notify winit before presenting to the windowing system.Window::set_blurto request a blur behind the window; implemented on Wayland for now.Window::show_window_menuto request a titlebar/system menu; implemented on Wayland/Windows for now.AsFd/AsRawFdforEventLoop<T>on X11 and Wayland.PartialOrdandOrdforMouseButton.PartialOrdandOrdon types in thedpimodule.WindowBuilderSend + Sync.MonitorHandleandVideoModeusable from other threads.EventLoopBuilderExtAndroid::handle_volume_keysto indicate that the application will handle the volume keys manually.DeviceIdto contain device id's.ModifiersChangednot being sent.Window::outer_sizenow accounts for client side decorations.Window::drag_resize_windowmethod.WINIT_WAYLAND_CSD_THEMEvariable.TouchPhase::Canceledbeing sent for moved events.Occludedevent with xdg-shell v6RedrawRequestedevents so redraws will align with compositor.ControlFlow::WaitUntilnow uses the Prioritized Task Scheduling API.setTimeout(), with a trick to circumvent throttling to 4ms, is used as a fallback.EventLoopProxynow implementsSend.Windownow implementsSendandSync.padding,border, andmarginwhen getting or setting the canvas position.DeviceEvent::Motion,DeviceEvent::MouseWheel,DeviceEvent::ButtonandDeviceEvent::Keysupport.EventLoopWindowTargetExtWebSysandPollStrategy, which allows to set different strategies forControlFlow::Poll. By default the Prioritized Task Scheduling API is used, but an option to useWindow.requestIdleCallbackis available as well. Both usesetTimeout(), with a trick to circumvent throttling to 4ms, as a fallback.WindowBuilderExtWebSys::with_append()to append the canvas element to the web page on creation.spawn.ControlFlow::WaitUntilto never wake up before the given time.DeviceEvent::MouseMotiononly being emitted for each canvas instead of the whole window.Window:::set_fullscreendoing nothing when called outside the event loop but during transient activation.WindowBuildermethods doing nothing.Windowmethods using incorrect HTML attributes instead of CSS properties.beforeunloadevent and map bfcache loading/unloading toSuspended/Resumedevents.Window::focus_window().Window::set_(min|max)_inner_size().WindowEvent::Occluded.MonitorHandle.Window::is_dark_mode(), which was replaced withWindow::theme().EventLoopWindowTarget::listen_device_events()settings.Window.requestAnimationFrame()to throttleRedrawRequestedevents.Window::request_redrawnot waking the event loop when called from outside the loop.drag_resize_windowmethod support.DeviceEvent.WindowBuilderExtWindows::with_class_nameto customize the internal class name.CursorEnter/Leftnot being sent when grabbing the mouse.RedrawRequestednot being delivered when callingWindow::request_redrawfromRedrawRequested.windows-sysversion 0.48.0.with_embedded_parent_windowfunction to the window builder to allow embedding a window into another window.ControlFlow::PollandControlFlow::WaitUntil.visual_idin returnedraw-window-handle.ControlFlow::PolltoControlFlow::Poll.WindowEvent::Occluded(false),WindowEvent::Occluded(true)when application enters/leaves foreground.WindowExtMacOSandEventLoopWindowTargetExtMacOS.Globekey.window.set_minimized(false).Window.v0.28.7Compare Source
v0.28.6Compare Source
Backspacebeing emitted when clearing preedit with it.v0.28.5Compare Source
key_upbeing ignored whenImeis disabled.v0.28.4Compare Source
Window::set_ime_positionfrom another thread.v0.28.3Compare Source
v0.28.2Compare Source
HasRawDisplayHandleforEventLoop.Window::theme.v0.28.1Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.