File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1353,15 +1353,16 @@ impl Window {
1353
1353
///
1354
1354
/// ## Platform-specific
1355
1355
///
1356
- /// - **iOS / Android / Web / Wayland / Orbital:** Always returns an [`ExternalError::NotSupported`].
1356
+ /// - **Wayland**: Cursor must be in [`CursorGrabMode::Locked`].
1357
+ /// - **iOS / Android / Web / Orbital:** Always returns an [`ExternalError::NotSupported`].
1357
1358
#[ inline]
1358
1359
pub fn set_cursor_position < P : Into < Position > > ( & self , position : P ) -> Result < ( ) , ExternalError > {
1359
1360
let position = position. into ( ) ;
1360
1361
self . window
1361
1362
. maybe_wait_on_main ( |w| w. set_cursor_position ( position) )
1362
1363
}
1363
1364
1364
- /// Set grabbing [mode]([` CursorGrabMode`] ) on the cursor preventing it from leaving the window.
1365
+ /// Set grabbing [mode](CursorGrabMode) on the cursor preventing it from leaving the window.
1365
1366
///
1366
1367
/// # Example
1367
1368
///
You can’t perform that action at this time.
0 commit comments