-
Notifications
You must be signed in to change notification settings - Fork 903
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
Winit version 0.29.2 #3160
Commits on Oct 17, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2842793 - Browse repository at this point
Copy the full SHA 2842793View commit details -
Fix recent CI failures (rust-windowing#3041)
* Fix new clippy lints * Fix nightly documentation warnings
Configuration menu - View commit details
-
Copy full SHA for 2c07f21 - Browse repository at this point
Copy the full SHA 2c07f21View commit details -
Configuration menu - View commit details
-
Copy full SHA for d24b473 - Browse repository at this point
Copy the full SHA d24b473View commit details -
Configuration menu - View commit details
-
Copy full SHA for 26ce0ef - Browse repository at this point
Copy the full SHA 26ce0efView commit details -
Configuration menu - View commit details
-
Copy full SHA for 67de182 - Browse repository at this point
Copy the full SHA 67de182View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa85850 - Browse repository at this point
Copy the full SHA fa85850View commit details -
Improve CI caching, and give each job names
This improves CI performance by around 20% (down from 10 to 8 minutes).
Configuration menu - View commit details
-
Copy full SHA for affbd99 - Browse repository at this point
Copy the full SHA affbd99View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for c34ca34 - Browse repository at this point
Copy the full SHA c34ca34View commit details -
Configuration menu - View commit details
-
Copy full SHA for 33c7931 - Browse repository at this point
Copy the full SHA 33c7931View commit details -
Configuration menu - View commit details
-
Copy full SHA for b7f84c6 - Browse repository at this point
Copy the full SHA b7f84c6View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5953f1 - Browse repository at this point
Copy the full SHA b5953f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for e96152e - Browse repository at this point
Copy the full SHA e96152eView commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for cc303be - Browse repository at this point
Copy the full SHA cc303beView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8373bfa - Browse repository at this point
Copy the full SHA 8373bfaView commit details -
Configuration menu - View commit details
-
Copy full SHA for c8661f4 - Browse repository at this point
Copy the full SHA c8661f4View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac09862 - Browse repository at this point
Copy the full SHA ac09862View commit details -
Configuration menu - View commit details
-
Copy full SHA for 730d8e4 - Browse repository at this point
Copy the full SHA 730d8e4View commit details -
Slightly reduce number of
cfg
s (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
Configuration menu - View commit details
-
Copy full SHA for 7406acc - Browse repository at this point
Copy the full SHA 7406accView commit details -
Mark
startup_notify
unsafe functions as safeThey 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.
Configuration menu - View commit details
-
Copy full SHA for 604dfe3 - Browse repository at this point
Copy the full SHA 604dfe3View commit details -
Remove
T
fromEventLoopTargetWindow
(rust-windowing#3081)Co-authored-by: nerditation <12248559+nerditation@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for b9ba73d - Browse repository at this point
Copy the full SHA b9ba73dView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 0c1bae3 - Browse repository at this point
Copy the full SHA 0c1bae3View commit details -
Configuration menu - View commit details
-
Copy full SHA for b4a597c - Browse repository at this point
Copy the full SHA b4a597cView commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for d2fa3f3 - Browse repository at this point
Copy the full SHA d2fa3f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 404fc46 - Browse repository at this point
Copy the full SHA 404fc46View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed5d0a2 - Browse repository at this point
Copy the full SHA ed5d0a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for bfff708 - Browse repository at this point
Copy the full SHA bfff708View commit details -
Configuration menu - View commit details
-
Copy full SHA for bb54a8c - Browse repository at this point
Copy the full SHA bb54a8cView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for aff8647 - Browse repository at this point
Copy the full SHA aff8647View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8534721 - Browse repository at this point
Copy the full SHA 8534721View commit details -
Configuration menu - View commit details
-
Copy full SHA for 72f2212 - Browse repository at this point
Copy the full SHA 72f2212View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d2d889 - Browse repository at this point
Copy the full SHA 7d2d889View commit details -
On X11, fix WaitUntil and Poll behavior
Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
Configuration menu - View commit details
-
Copy full SHA for db9e1f2 - Browse repository at this point
Copy the full SHA db9e1f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3862da8 - Browse repository at this point
Copy the full SHA 3862da8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9fac792 - Browse repository at this point
Copy the full SHA 9fac792View commit details -
Configuration menu - View commit details
-
Copy full SHA for eef63d6 - Browse repository at this point
Copy the full SHA eef63d6View commit details -
Remove
DeviceEvent::Text
eventThe event is never constructed inside the winit.
Configuration menu - View commit details
-
Copy full SHA for 7c86e5c - Browse repository at this point
Copy the full SHA 7c86e5cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ea2702b - Browse repository at this point
Copy the full SHA ea2702bView commit details -
Bump version on master (rust-windowing#3119)
This commit does not represent a release and only synchronizes CHANGELOG from the latest release.
Configuration menu - View commit details
-
Copy full SHA for 597b4e3 - Browse repository at this point
Copy the full SHA 597b4e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for cd114c5 - Browse repository at this point
Copy the full SHA cd114c5View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 88914de - Browse repository at this point
Copy the full SHA 88914deView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1280170 - Browse repository at this point
Copy the full SHA 1280170View commit details -
Configuration menu - View commit details
-
Copy full SHA for 96fe308 - Browse repository at this point
Copy the full SHA 96fe308View commit details -
Configuration menu - View commit details
-
Copy full SHA for f4e66b4 - Browse repository at this point
Copy the full SHA f4e66b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ea0daa - Browse repository at this point
Copy the full SHA 9ea0daaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8011b7d - Browse repository at this point
Copy the full SHA 8011b7dView commit details -
Allow clients to request blur behind their window, implemented on Wayland for now.
Configuration menu - View commit details
-
Copy full SHA for 47220ae - Browse repository at this point
Copy the full SHA 47220aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4df6cc1 - Browse repository at this point
Copy the full SHA 4df6cc1View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for cc3e898 - Browse repository at this point
Copy the full SHA cc3e898View commit details -
Configuration menu - View commit details
-
Copy full SHA for b96577d - Browse repository at this point
Copy the full SHA b96577dView commit details -
Configuration menu - View commit details
-
Copy full SHA for becfdd8 - Browse repository at this point
Copy the full SHA becfdd8View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 6f6dba6 - Browse repository at this point
Copy the full SHA 6f6dba6View commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for 351e9ea - Browse repository at this point
Copy the full SHA 351e9eaView commit details -
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)
Configuration menu - View commit details
-
Copy full SHA for cd3a30e - Browse repository at this point
Copy the full SHA cd3a30eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d13dcee - Browse repository at this point
Copy the full SHA d13dceeView commit details -
Update to new raw-window-handle strategy
Signed-off-by: John Nunley <dev@notgull.net> Co-authored-by: TornaxO7 <tornax@proton.me>
Configuration menu - View commit details
-
Copy full SHA for 4f74082 - Browse repository at this point
Copy the full SHA 4f74082View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae28671 - Browse repository at this point
Copy the full SHA ae28671View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 90502a4 - Browse repository at this point
Copy the full SHA 90502a4View commit details -
Fix potentially unaligned references in X11 device
Fixes rust-windowing#3125 Signed-off-by: John Nunley <dev@notgull.net>
Configuration menu - View commit details
-
Copy full SHA for 5787085 - Browse repository at this point
Copy the full SHA 5787085View commit details -
Implement
AsFd
/AsRawFd
forEventLoop<T>
This should help other crates to integrate winit's event loop into their bigger event loop without adding an extra thread.
Configuration menu - View commit details
-
Copy full SHA for 2d8e380 - Browse repository at this point
Copy the full SHA 2d8e380View commit details -
Add a note on
Window::request_redraw
on WindowsFixing 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.
Configuration menu - View commit details
-
Copy full SHA for eaf2346 - Browse repository at this point
Copy the full SHA eaf2346View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f072d5 - Browse repository at this point
Copy the full SHA 6f072d5View commit details -
Upgrade to
ndk 0.8
,ndk-sys 0.5
+android-activity 0.5
releasesFixes rust-windowing#2905. Co-authored-by: Robert Bragg <robert@sixbynine.org>
Configuration menu - View commit details
-
Copy full SHA for c21d5f8 - Browse repository at this point
Copy the full SHA c21d5f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0877385 - Browse repository at this point
Copy the full SHA 0877385View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for c0c7f91 - Browse repository at this point
Copy the full SHA c0c7f91View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 537fe8d - Browse repository at this point
Copy the full SHA 537fe8dView commit details
Commits on Oct 21, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 9c27e64 - Browse repository at this point
Copy the full SHA 9c27e64View commit details -
Fix examples not render on Wayland
The `rwh_05` feature was not enabled. Fixes: e41fac8 (Update to new raw-window-handle strategy)
Configuration menu - View commit details
-
Copy full SHA for 837dac9 - Browse repository at this point
Copy the full SHA 837dac9View commit details -
Ensure that DISPLAY vars are non-empty before using
It's common to disable Wayland by `WAYLAND_DISPLAY= <application>`.
Configuration menu - View commit details
-
Copy full SHA for 7a23c5c - Browse repository at this point
Copy the full SHA 7a23c5cView commit details -
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>
Configuration menu - View commit details
-
Copy full SHA for ed77661 - Browse repository at this point
Copy the full SHA ed77661View commit details -
The docs are in the src/lib.rs anyway and are present on docs.rs.
Configuration menu - View commit details
-
Copy full SHA for dd6798c - Browse repository at this point
Copy the full SHA dd6798cView commit details -
The property is marked as `Weak`, however we used strong `Id`. Links: alacritty/alacritty#7249
Configuration menu - View commit details
-
Copy full SHA for 699a675 - Browse repository at this point
Copy the full SHA 699a675View commit details -
On iOS, add configuration for status bar style
Co-authored-by: Mads Marquart <mads@marquart.dk>
Configuration menu - View commit details
-
Copy full SHA for 8f8954c - Browse repository at this point
Copy the full SHA 8f8954cView commit details -
On Windows, fix invalid hmonitor panic
Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
Configuration menu - View commit details
-
Copy full SHA for f2f2a70 - Browse repository at this point
Copy the full SHA f2f2a70View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a600c9 - Browse repository at this point
Copy the full SHA 0a600c9View commit details -
On Windows, fix
RedrawRequested
deliveryWhen 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.
Configuration menu - View commit details
-
Copy full SHA for 9e94645 - Browse repository at this point
Copy the full SHA 9e94645View commit details -
On Windows, fix IME APIs MT-safety
Execute the calls to the IME from the main thread. Fixes rust-windowing#3123.
Configuration menu - View commit details
-
Copy full SHA for ed4245e - Browse repository at this point
Copy the full SHA ed4245eView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 43978f3 - Browse repository at this point
Copy the full SHA 43978f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for c538dd1 - Browse repository at this point
Copy the full SHA c538dd1View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 22ea7fe - Browse repository at this point
Copy the full SHA 22ea7feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a9d733 - Browse repository at this point
Copy the full SHA 7a9d733View commit details