I am trying to set my cursor's CursorGrabMode to either Locked or Confined after switching tabs (and setting the CursorGrabMode to None) then switching back (and changing to Locked or Confined).
Note: The check for WindowPosition::Automatic is a workaround for another bug #16237
What went wrong
with grabmode set to confined the mouse is not confined to the window and I get this error
ERROR bevy_winit::winit_windows: Unable to grab cursor: the requested operation is not supported by Winit
with grabmode locked the same thing happens and I get this error
ERROR bevy_winit::winit_windows: Unable to grab cursor: os error at /home/knar/.cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.30.5/src/platform_impl/linux/x11/window.rs:1551: Cursor could not be confined: already confined by another client
Additional information
I haven't found a workaround for this issue yet :(
Bevy version
0.14.2
[Optional] Relevant system information
Ubuntu 22.04.2 LTS X11
What you did
I am trying to set my cursor's CursorGrabMode to either Locked or Confined after switching tabs (and setting the CursorGrabMode to None) then switching back (and changing to Locked or Confined).
Note: The check for WindowPosition::Automatic is a workaround for another bug #16237
What went wrong
with grabmode set to confined the mouse is not confined to the window and I get this error
with grabmode locked the same thing happens and I get this error
Additional information
I haven't found a workaround for this issue yet :(