Download Latest Version Winit version v0.30.12 source code.tar.gz (612.5 kB)
Email in envelope

Get an email when there's a new version of winit

Home / v0.30.10
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2025-04-30 1.6 kB
Winit version 0.30.10 source code.tar.gz 2025-04-30 612.0 kB
Winit version 0.30.10 source code.zip 2025-04-30 735.1 kB
Totals: 3 Items   1.3 MB 0

Added

  • On Windows, add IconExtWindows::from_resource_name.
  • On Windows, add CursorGrabMode::Locked.
  • On Wayland, add WindowExtWayland::xdg_toplevel.

Changed

  • On macOS, no longer need control of the main NSApplication class (which means you can now override it yourself).
  • On iOS, remove custom application delegates. You are now allowed to override the application delegate yourself.
  • On iOS, no longer act as-if the application successfully open all URLs. Override application:didFinishLaunchingWithOptions: and provide the desired behaviour yourself.

Fixed

  • On Windows, fixed ~500 ms pause when clicking the title bar during continuous redraw.
  • On macOS, WindowExtMacOS::set_simple_fullscreen now honors WindowExtMacOS::set_borderless_game
  • On X11 and Wayland, fixed pump_events with Some(Duration::Zero) blocking with Wait polling mode
  • On Wayland, fixed a crash when consequently calling set_cursor_grab without pointer focus.
  • On Wayland, ensure that external event loop is woken-up when using pump_events and integrating via FD.
  • On Wayland, apply fractional scaling to custom cursors.
  • On macOS, fixed run_app_on_demand returning without closing open windows.
  • On macOS, fixed VideoMode::refresh_rate_millihertz for fractional refresh rates.
  • On macOS, store monitor handle to avoid panics after going in/out of sleep.
  • On macOS, allow certain invalid monitor handles and return None instead of panicking.
  • On Windows, fixed Ime::Preedit cursor offset calculation.
Source: README.md, updated 2025-04-30