Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Winit version 0.29.2 #3160

Merged
merged 80 commits into from
Oct 21, 2023
Merged

Winit version 0.29.2 #3160

merged 80 commits into from
Oct 21, 2023

Commits on Oct 17, 2023

  1. Configuration menu
    Copy the full SHA
    2842793 View commit details
    Browse the repository at this point in the history
  2. Fix recent CI failures (rust-windowing#3041)

    * Fix new clippy lints
    
    * Fix nightly documentation warnings
    madsmtm authored and kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    2c07f21 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d24b473 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    26ce0ef View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    67de182 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    fa85850 View commit details
    Browse the repository at this point in the history
  7. Improve CI caching, and give each job names

    This improves CI performance by around 20% (down from 10 to 8 minutes).
    madsmtm authored and kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    affbd99 View commit details
    Browse the repository at this point in the history
  8. Make iOS fully thread safe (rust-windowing#3045)

    * macOS & iOS: Refactor EventWrapper
    
    * macOS & iOS: Make EventLoopWindowTarget independent of the user event
    
    * iOS: Use MainThreadMarker instead of marking functions unsafe
    
    * Make iOS thread safe
    madsmtm authored and kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    c34ca34 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    33c7931 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b7f84c6 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    b5953f1 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    e96152e View commit details
    Browse the repository at this point in the history
  13. Implement X11 extensions using x11rb instead of Xlib

    Removes Xlib code by replacing it with the x11rb equivalent,
    the commit handles xrandr, xinput, xinput2, and xkb.
    
    Signed-off-by: John Nunley <dev@notgull.net>
    notgull authored and kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    cc303be View commit details
    Browse the repository at this point in the history
  14. Fix missing quote (rust-windowing#3068)

    madsmtm authored and kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    8373bfa View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    c8661f4 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    ac09862 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    730d8e4 View commit details
    Browse the repository at this point in the history
  18. Slightly reduce number of cfgs (rust-windowing#3071)

    * Make Linux platforms less dependent on the root monitor handle
    
    * Add various functions to the Wayland platform to reduce cfgs
    
    * Don't use a cfg in listen_device_events
    
    * Don't use a cfg in set_content_protected
    
    * Fix instance of a target_os cfg
    madsmtm authored and kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    7406acc View commit details
    Browse the repository at this point in the history
  19. Mark startup_notify unsafe functions as safe

    They are safe, since they use the rust `std::env` stuff. Making them
    safe lets downstream to determine that `std::env` is used and not the
    `libc` env manipulation routines, which are unsafe.
    kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    604dfe3 View commit details
    Browse the repository at this point in the history
  20. Remove T from EventLoopTargetWindow (rust-windowing#3081)

    Co-authored-by: nerditation <12248559+nerditation@users.noreply.github.com>
    2 people authored and kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    b9ba73d View commit details
    Browse the repository at this point in the history
  21. Allow the user to force X11 under Wayland

    Use forced backend over the env variables. 
    
    Signed-off-by: John Nunley <dev@notgull.net>
    Fixes: rust-windowing#3057
    notgull authored and kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    0c1bae3 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    b4a597c View commit details
    Browse the repository at this point in the history
  23. Revert select_xkb_events to its previous impl

    The new implementation of select_xkb_events apparently misconfigures
    the server. This commit does a temporary fix by just reverting it to its
    previous implementation.
    
    This is temporary until I can figure out what Xlib is doing behind the
    scenes or until I read xkbproto.pdf.
    
    Fixes: rust-windowing#3079
    Signed-off-by: John Nunley <dev@notgull.net>
    notgull authored and kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    d2fa3f3 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    404fc46 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    ed5d0a2 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    bfff708 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    bb54a8c View commit details
    Browse the repository at this point in the history
  28. Ignore foreign-types* duplicate deps on macOS

    The dependency is duplicated due to examples, yet we still need to
    exclude checking it.
    
    Fixes rust-windowing#3093.
    daxpedda authored and kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    aff8647 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    8534721 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    72f2212 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    7d2d889 View commit details
    Browse the repository at this point in the history
  32. On X11, fix WaitUntil and Poll behavior

    Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
    Riateche and kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    db9e1f2 View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    3862da8 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    9fac792 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    eef63d6 View commit details
    Browse the repository at this point in the history
  36. Remove DeviceEvent::Text event

    The event is never constructed inside the winit.
    kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    7c86e5c View commit details
    Browse the repository at this point in the history
  37. Fix transparent windows on X11

    macmv authored and kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    ea2702b View commit details
    Browse the repository at this point in the history
  38. Bump version on master (rust-windowing#3119)

    This commit does not represent a release and only synchronizes CHANGELOG from the latest release.
    madsmtm authored and kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    597b4e3 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    cd114c5 View commit details
    Browse the repository at this point in the history
  40. X11: Add #[deny(unsafe_op_in_unsafe_fn)] (rust-windowing#3121)

    * X11: Add #[deny(unsafe_op_in_unsafe_fn)]
    
    * Enable #![deny(unsafe_op_in_unsafe_fn)] everywhere
    madsmtm authored and kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    88914de View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    1280170 View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    96fe308 View commit details
    Browse the repository at this point in the history
  43. Rename run_ondemand to run_on_demand

    epimeletes authored and kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    f4e66b4 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    9ea0daa View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    8011b7d View commit details
    Browse the repository at this point in the history
  46. Add Window::set_blur

    Allow clients to request blur behind their window, implemented on
    Wayland for now.
    dsseng authored and kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    47220ae View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    4df6cc1 View commit details
    Browse the repository at this point in the history
  48. Remove obsolete docs about wayland CSD env variable

    The env variable was removed a while ago, yet it was still present in
    the user docs.
    kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    cc3e898 View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    b96577d View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    becfdd8 View commit details
    Browse the repository at this point in the history
  51. Add Window::show_window_menu

    Add a method to request a system menu. The implementation
    is provided only on Windows for now.
    
    Co-authored-by: daxpedda <daxpedda@gmail.com>
    Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
    3 people committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    6f6dba6 View commit details
    Browse the repository at this point in the history
  52. Add Occluded and MemoryWarning events for iOS/Android

    Hook `Occluded` event to foreground/background evens on iOS.
    
    This commit also enabled the `MemoryWarning` event, since it's
    emitted from the windowing system.
    
    Co-authored-by: Dusty DeWeese <dustin.deweese@gmail.com>
    Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
    3 people committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    351e9ea View commit details
    Browse the repository at this point in the history
  53. Fix CHANGELOG entry for Event::MemoryWarning

    While the changelog entries for beta releases doesn't really matter. The
    change wasn't marked as breaking, while it is.
    
    Fixes: 93f1000 (Add Occluded and MemoryWarning events for iOS/Android)
    kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    cd3a30e View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    d13dcee View commit details
    Browse the repository at this point in the history
  55. Update to new raw-window-handle strategy

    Signed-off-by: John Nunley <dev@notgull.net>
    Co-authored-by: TornaxO7 <tornax@proton.me>
    2 people authored and kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    4f74082 View commit details
    Browse the repository at this point in the history
  56. Fix ndk deps versions

    kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    ae28671 View commit details
    Browse the repository at this point in the history
  57. Update SCTK to 0.18.0

    The update is pretty minor, however we support now
    `WindowEvent::Occluded` when xdg-shell v6 is available.
    
    It also adds support for `Window::show_window_menu`.
    
    Fixes rust-windowing#2927.
    kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    90502a4 View commit details
    Browse the repository at this point in the history
  58. Fix potentially unaligned references in X11 device

    Fixes rust-windowing#3125
    Signed-off-by: John Nunley <dev@notgull.net>
    notgull authored and kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    5787085 View commit details
    Browse the repository at this point in the history
  59. Implement AsFd/AsRawFd for EventLoop<T>

    This should help other crates to integrate winit's event loop into
    their bigger event loop without adding an extra thread.
    kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    2d8e380 View commit details
    Browse the repository at this point in the history
  60. Add a note on Window::request_redraw on Windows

    Fixing this could require a massive rework to how redraw is handled
    on windows to the point of removing `WM_PAINT`, since it's not reliable
    by any means for our use case.
    
    For now at least document that the API is broken. It was broken like
    that for a long while.
    kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    eaf2346 View commit details
    Browse the repository at this point in the history
  61. Web Async Rework (rust-windowing#3082)

    daxpedda authored and kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    6f072d5 View commit details
    Browse the repository at this point in the history
  62. Upgrade to ndk 0.8, ndk-sys 0.5 + android-activity 0.5 releases

    Fixes rust-windowing#2905.
    Co-authored-by: Robert Bragg <robert@sixbynine.org>
    MarijnS95 authored and kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    c21d5f8 View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    0877385 View commit details
    Browse the repository at this point in the history
  64. Make WindowBuilder Send + Sync

    Window builder is always accessed by winit on the thread event loop
    is on, thus it's safe to mark the data it gets as `Send + Sync`.
    Each unsafe object is marked individually as `Send + Sync` instead
    of just implementing `Send` and `Sync` for the whole builder.
    kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    c0c7f91 View commit details
    Browse the repository at this point in the history
  65. On macOS, fix globe key triggering assertion

    Sometimes FlagsChanged events don't carry any KeyCode information, thus
    we can't create a synthetic presses events for them.
    
    However in such cases, modifiers information is still accurate, thus
    propagate it.
    
    Fixes rust-windowing#2872.
    kchibisov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    537fe8d View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2023

  1. Configuration menu
    Copy the full SHA
    9c27e64 View commit details
    Browse the repository at this point in the history
  2. Fix examples not render on Wayland

    The `rwh_05` feature was not enabled.
    
    Fixes: e41fac8 (Update to new raw-window-handle strategy)
    kchibisov committed Oct 21, 2023
    Configuration menu
    Copy the full SHA
    837dac9 View commit details
    Browse the repository at this point in the history
  3. Ensure that DISPLAY vars are non-empty before using

    It's common to disable Wayland by `WAYLAND_DISPLAY= <application>`.
    kchibisov committed Oct 21, 2023
    Configuration menu
    Copy the full SHA
    7a23c5c View commit details
    Browse the repository at this point in the history
  4. Revise Key and KeyCode enums

    Split `Key` into clear categories, like `Named`, `Dead`, Character`, `Unidentified`
    removing the `#[non_exhaustive]` from the `Key` itself.
    
    Similar action was done for the `KeyCode`.
    
    Fixes: rust-windowing#2995
    Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
    dhardy and kchibisov committed Oct 21, 2023
    Configuration menu
    Copy the full SHA
    ed77661 View commit details
    Browse the repository at this point in the history
  5. Remove garbage from README

    The docs are in the src/lib.rs anyway and are present on docs.rs.
    kchibisov committed Oct 21, 2023
    Configuration menu
    Copy the full SHA
    dd6798c View commit details
    Browse the repository at this point in the history
  6. On macOS, fix tabGroup misuse

    The property is marked as `Weak`, however we used strong `Id`.
    
    Links: alacritty/alacritty#7249
    kchibisov committed Oct 21, 2023
    Configuration menu
    Copy the full SHA
    699a675 View commit details
    Browse the repository at this point in the history
  7. On iOS, add configuration for status bar style

    Co-authored-by: Mads Marquart <mads@marquart.dk>
    2 people authored and kchibisov committed Oct 21, 2023
    Configuration menu
    Copy the full SHA
    8f8954c View commit details
    Browse the repository at this point in the history
  8. On Windows, fix invalid hmonitor panic

    Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
    xiaopengli89 and kchibisov committed Oct 21, 2023
    Configuration menu
    Copy the full SHA
    f2f2a70 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    0a600c9 View commit details
    Browse the repository at this point in the history
  10. On Windows, fix RedrawRequested delivery

    When calling `Window::request_redraw` from the `RedrawRequested`
    handler the `RedrawWindow` won't result in `WM_PAINT` being delivered
    due since user callback is run before `DefWindowProcW` is called.
    
    Track whether the user called `Window::request_redraw` and ask for
    `RedrawWindow` after running the said function during `WM_PAINT`
    handling.
    
    Fixes rust-windowing#3150.
    kchibisov committed Oct 21, 2023
    Configuration menu
    Copy the full SHA
    9e94645 View commit details
    Browse the repository at this point in the history
  11. On Windows, fix IME APIs MT-safety

    Execute the calls to the IME from the main thread.
    
    Fixes rust-windowing#3123.
    kchibisov committed Oct 21, 2023
    Configuration menu
    Copy the full SHA
    ed4245e View commit details
    Browse the repository at this point in the history
  12. feat(windows): Fix inconsistency in mouse button device events, add h…

    …wheel device event on Windows
    
    While working with device events, I noticed that there was an inconsistency in the mouse button device events between Windows/X11 and for example web, because web uses the same ids/order as the MouseButton enum, and Windows/X11 are using the X11 ids, and hwheel device event was ignored on Windows.
    
    Mouse button device events are now using the same order as the MouseButton enum, and I also added hwheel device events for Windows.
    valaphee authored and kchibisov committed Oct 21, 2023
    Configuration menu
    Copy the full SHA
    43978f3 View commit details
    Browse the repository at this point in the history
  13. Fix rwhd_05 doc links

    dhardy authored and kchibisov committed Oct 21, 2023
    Configuration menu
    Copy the full SHA
    c538dd1 View commit details
    Browse the repository at this point in the history
  14. On X11, fix cursor_hittest not reloaded on Resize

    The cursor hittest was not reloaded on window size changes, only
    when `Window::request_inner_size` was called leading to regions
    of the window being not clickable.
    
    Also, don't try to apply hittest logic when user never requested a
    hittest.
    
    Links: alacritty/alacritty#7220
    kchibisov committed Oct 21, 2023
    Configuration menu
    Copy the full SHA
    22ea7fe View commit details
    Browse the repository at this point in the history
  15. Winit version 0.29.2

    kchibisov committed Oct 21, 2023
    Configuration menu
    Copy the full SHA
    7a9d733 View commit details
    Browse the repository at this point in the history