Open bicarlsen opened 1 month ago
@FabianLars I also tested on Windows and got the same error, so my guess is it's a platform independent bug.
Do you still have the full error from the Windows test? I doubt it's exactly the same since we don't use GDK on Windows so it'd be interesting to see where it panics.
Oops, it appears it is working on Windows now. I must have messed something up when testing the first time. Sorry about that.
Describe the bug
In v2 when calling
__TAURI__.window.cursorPosition()
I receive the errorGDK may only be used from the main thread
on the backend.Reproduction
From a Tauri v2 app, in the console run
__TAURI__.window.cursorPosition()
.Expected behavior
Cursor position should be returned.
Full
tauri info
outputStack trace
Additional context
No response