Эх сурвалжийг харах

chore: prepare `set_cursor_grab` in Linux

it is not implemented yet, but the next tao release won't panic when called, so we'll get this ready for a future patch
Lucas Nogueira 3 жил өмнө
parent
commit
0198c2ba45

+ 0 - 2
core/tauri-runtime-wry/src/lib.rs

@@ -2267,9 +2267,7 @@ fn handle_user_message<T: UserEvent>(
             #[cfg(any(windows, target_os = "linux"))]
             window.set_skip_taskbar(skip);
           }
-          #[allow(unused_variables)]
           WindowMessage::SetCursorGrab(grab) => {
-            #[cfg(any(windows, target_os = "macos"))]
             let _ = window.set_cursor_grab(grab);
           }
           WindowMessage::SetCursorVisible(visible) => {