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
John Nunley
25b629f117
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 >
2023-10-21 11:40:41 +04:00
daxpedda
4b30f9ce22
Web: Fullscreen Overhaul ( #3063 )
2023-10-21 11:40:41 +04:00
daxpedda
2428224c09
Enable event propagation ( #3062 )
2023-10-21 11:40:41 +04:00
Mads Marquart
2d9b852a95
Fix macOS deminiaturize ( #3054 )
2023-10-21 11:40:41 +04:00
Kirill Chibisov
246d53d5a1
Lock the cargo-apk deps on CI
2023-10-21 11:40:41 +04:00
Mads Marquart
865afd22be
Make iOS fully thread safe ( #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
2023-10-21 11:40:41 +04:00
Mads Marquart
05130cb329
Improve CI caching, and give each job names
...
This improves CI performance by around 20% (down from 10 to 8 minutes).
2023-10-21 11:40:41 +04:00
daxpedda
a1a6f7baf9
Move Event::RedrawRequested to WindowEvent ( #3049 )
2023-10-21 11:40:41 +04:00
daxpedda
f160a6003c
On Web, never return a MonitorHandle ( #3051 )
2023-10-21 11:40:41 +04:00
daxpedda
a24d092fa1
Use setTimeout() trick instead of Window.requestIdleCallback() ( #3044 )
2023-10-21 11:40:41 +04:00
Mads Marquart
a8a0462c0d
Use frame instead of visibleRect ( #3043 )
2023-10-21 11:40:41 +04:00
Mads Marquart
647c320ca7
Fix recent CI failures ( #3041 )
...
* Fix new clippy lints
* Fix nightly documentation warnings
2023-10-21 11:40:41 +04:00