Diggory Hardy
0bc8f5e33a
Implement Ord/PartialOrd for ModifiersState
2023-10-21 11:40:41 +04:00
Xiaopeng Li
f6cc6c1472
On Windows, fix invalid hmonitor panic
...
Co-authored-by: Kirill Chibisov <contact@kchibisov.com >
2023-10-21 11:40:41 +04:00
Arend van Beelen jr
20384d2f02
On iOS, add configuration for status bar style
...
Co-authored-by: Mads Marquart <mads@marquart.dk >
2023-10-21 11:40:41 +04:00
Kirill Chibisov
cdee616812
On macOS, fix tabGroup misuse
...
The property is marked as `Weak`, however we used strong `Id`.
Links: https://github.com/alacritty/alacritty/issues/7249
2023-10-21 11:40:41 +04:00
Kirill Chibisov
f58fb69446
Remove garbage from README
...
The docs are in the src/lib.rs anyway and are present on docs.rs.
2023-10-21 11:40:41 +04:00
Diggory Hardy
6b445219c1
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 : #2995
Co-authored-by: Kirill Chibisov <contact@kchibisov.com >
2023-10-21 11:40:41 +04:00
Kirill Chibisov
18b8569161
Ensure that DISPLAY vars are non-empty before using
...
It's common to disable Wayland by `WAYLAND_DISPLAY= <application>`.
2023-10-21 11:40:41 +04:00
Kirill Chibisov
08b0464ac3
Fix examples not render on Wayland
...
The `rwh_05` feature was not enabled.
Fixes: e41fac825c (Update to new raw-window-handle strategy)
2023-10-21 11:40:41 +04:00
YouKnow
df2f5adfba
On Windows, fix CursorEntered/CursorLeft not sent during mouse grab
...
Fixes #3153 .
2023-10-21 11:40:41 +04:00
Kirill Chibisov
99f86d729f
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 #2872 .
2023-10-21 11:40:41 +04:00
Kirill Chibisov
d06deeecf6
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.
2023-10-21 11:40:41 +04:00
Kirill Chibisov
e6d2fd7287
Remove resolved deny.toml entries
2023-10-21 11:40:41 +04:00
Marijn Suijten
f2edd23542
Upgrade to ndk 0.8, ndk-sys 0.5 + android-activity 0.5 releases
...
Fixes #2905 .
Co-authored-by: Robert Bragg <robert@sixbynine.org >
2023-10-21 11:40:41 +04:00
daxpedda
70e6ddd210
Web Async Rework ( #3082 )
2023-10-21 11:40:41 +04:00
Kirill Chibisov
f3fb27c17b
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.
2023-10-21 11:40:41 +04:00
Kirill Chibisov
75b463a368
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.
2023-10-21 11:40:41 +04:00
John Nunley
ea8604e175
Fix potentially unaligned references in X11 device
...
Fixes #3125
Signed-off-by: John Nunley <dev@notgull.net >
2023-10-21 11:40:41 +04:00
Kirill Chibisov
b1bd0f77fb
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 #2927 .
2023-10-21 11:40:41 +04:00
Kirill Chibisov
1fded249d0
Fix ndk deps versions
2023-10-21 11:40:41 +04:00
John Nunley
349a3e7b8c
Update to new raw-window-handle strategy
...
Signed-off-by: John Nunley <dev@notgull.net >
Co-authored-by: TornaxO7 <tornax@proton.me >
2023-10-21 11:40:41 +04:00
Ryan Hileman
f2d277e599
feat: Implement set_cursor_hittest for X11
2023-10-21 11:40:41 +04:00
Kirill Chibisov
8d5d612456
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: 93f1000a0 (Add Occluded and MemoryWarning events for iOS/Android)
2023-10-21 11:40:41 +04:00
François
5788319632
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 >
2023-10-21 11:40:41 +04:00
YouKnow
976023bfc0
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 >
2023-10-21 11:40:41 +04:00
daxpedda
0f9b95814e
Fix reset to Poll after the event loop starts
2023-10-21 11:40:41 +04:00
baneyue
112dcc808a
On Wayland, fix MonitorHandle position
2023-10-21 11:40:41 +04:00
Kirill Chibisov
4a381fb1db
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.
2023-10-21 11:40:41 +04:00
daxpedda
8339ddf368
Web: fix ControlFlow::WaitUntil to never wake up **before** the given time ( #3133 )
2023-10-21 11:40:41 +04:00
Dmitry Sharshakov
b41f01c990
Add Window::set_blur
...
Allow clients to request blur behind their window, implemented on
Wayland for now.
2023-10-21 11:40:41 +04:00
daxpedda
570f3101e5
Web: remove unnecessary usage of once_cell::unsync::Lazy ( #3134 )
2023-10-21 11:40:41 +04:00
daxpedda
3923c59fd8
Update Clippy to v1.73 ( #3135 )
2023-10-21 11:40:41 +04:00
epimeletes
75ae402a24
Rename run_ondemand to run_on_demand
2023-10-21 11:40:41 +04:00
Fredrik Fornwall
4385c17cbb
Make DeviceId contain device id's on Android
2023-10-21 11:40:41 +04:00
Mads Marquart
3af256260e
Link to areweguiyet.com and arewegameyet.rs for extra deps
2023-10-21 11:40:41 +04:00
Mads Marquart
d9363219e1
X11: Add #[deny(unsafe_op_in_unsafe_fn)] ( #3121 )
...
* X11: Add #[deny(unsafe_op_in_unsafe_fn)]
* Enable #![deny(unsafe_op_in_unsafe_fn)] everywhere
2023-10-21 11:40:41 +04:00
Mads Marquart
a52a6d47ca
Windows: Add #[deny(unsafe_op_in_unsafe_fn)] ( #3070 )
2023-10-21 11:40:41 +04:00
Mads Marquart
ec83de3938
Bump version on master ( #3119 )
...
This commit does not represent a release and only synchronizes CHANGELOG from the latest release.
2023-10-21 11:40:41 +04:00
Neil Macneale V
43d6eac871
Fix transparent windows on X11
2023-10-21 11:40:41 +04:00
Kirill Chibisov
1f101b2654
Remove DeviceEvent::Text event
...
The event is never constructed inside the winit.
2023-10-21 11:40:41 +04:00
lucasmerlin
709929fcab
Pass force on touch events on android
2023-10-21 11:40:41 +04:00
daxpedda
220a2d32d5
Make ControlFlow::Wait the default ( #3106 )
2023-10-21 11:40:41 +04:00
Kirill Chibisov
c5cef46060
Remove old docs about EventLoop::run
2023-10-21 11:40:41 +04:00
Pavel Strakhov
367a2ae057
On X11, fix WaitUntil and Poll behavior
...
Co-authored-by: Kirill Chibisov <contact@kchibisov.com >
2023-10-21 11:40:41 +04:00
StarStarJ
e038597e81
Implement PartialOrd and Ord for MouseButton
2023-10-21 11:40:41 +04:00
Kirill Chibisov
27cd20739d
Correct Wayland section in dpi docs
...
Fixes #3100 .
2023-10-21 11:40:41 +04:00
daxpedda
8d9fd3d3d6
Install cargo-apk with the stable toolchain
2023-10-21 11:40:41 +04:00
daxpedda
56427e47a7
Ignore foreign-types* duplicate deps on macOS
...
The dependency is duplicated due to examples, yet we still need to
exclude checking it.
Fixes #3093 .
2023-10-21 11:40:41 +04:00
daxpedda
c744b9aea5
Rename PollType to PollStrategy ( #3089 )
2023-10-21 11:40:41 +04:00
John Nunley
ef9ed71f1b
Add an MSRV policy to the README ( #3046 )
2023-10-21 11:40:41 +04:00
daxpedda
dda8053bd3
Add Window.requestIdleCallback() support ( #3084 )
2023-10-21 11:40:41 +04:00