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
Fredrik Fornwall
779212da33
Correct set_exit() -> exit() in the changelog ( #3088 )
2023-10-21 11:40:41 +04:00
John Nunley
28552c9cc1
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 : #3079
Signed-off-by: John Nunley <dev@notgull.net >
2023-10-21 11:40:41 +04:00
daxpedda
48647b506f
Move ControlFlow to EventLoopWindowTarget
...
Fixes #3042 .
2023-10-21 11:40:41 +04:00
John Nunley
42243ce288
Allow the user to force X11 under Wayland
...
Use forced backend over the env variables.
Signed-off-by: John Nunley <dev@notgull.net >
Fixes : #3057
2023-10-21 11:40:41 +04:00
daxpedda
84d9bfd59e
Remove T from EventLoopTargetWindow ( #3081 )
...
Co-authored-by: nerditation <12248559+nerditation@users.noreply.github.com >
2023-10-21 11:40:41 +04:00
Kirill Chibisov
cd5c1fb724
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.
2023-10-21 11:40:41 +04:00
Mads Marquart
8455f3415e
Slightly reduce number of cfgs ( #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
2023-10-21 11:40:41 +04:00
Kirill Chibisov
c59d6bc809
On Wayland, fix TouchPhase::Canceled sent for Move
...
Fixes #3035 .
2023-10-21 11:40:41 +04:00
Mads Marquart
4681133eca
Make EventLoopWindowTarget independent of the user type on Orbital ( #3055 )
2023-10-21 11:40:41 +04:00
Mads Marquart
b278aa859f
Ensure that winit initializes NSApplication ( #3069 )
2023-10-21 11:40:41 +04:00
Mads Marquart
ee4ec43cf3
Fix missing quote ( #3068 )
2023-10-21 11:40:41 +04:00