-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Application only closes after mouse movement following frontend interaction #3882
Comments
Thanks for reporting this. This was something that came up a couple of times before and sometimes it could be observed and other times not. I'll try and dig out the previous discussions around this. |
Leaving this link here for me: #1273 |
I'm wondering if anyone else can confirm this. |
Reproduced on an old-ish Win 10 machine I've got lying around and on a Windows 11 Surface Pro 9, but not on my Mac. Maybe it's something specific to Windows?
|
Description
The application does not close when the window's close (X) button is clicked after interacting with the frontend. The app only closes if the mouse is moved after clicking the close button.
To Reproduce
wails init -n myproject -t react-ts
Greet
button.Expected behaviour
The application should close immediately upon clicking the close (X) button, without requiring additional mouse movement.
Screenshots
No response
Attempted Fixes
I tried several methods to fix this issue, but none have resolved the problem so far:
Using OnBeforeClose and OnShutdown:
I attempted to clear the shutdown-related handlers by setting them to nil in the app struct. This included resetting any relevant fields related to shutdown processing, but the issue persisted.
I also commented out the front-end click handlers to check if any JavaScript was blocking the closure, but the behavior remained the same.
System Details
Additional context
No response
The text was updated successfully, but these errors were encountered: