wails/v3/pkg/events
Atterpac 0b7d1f4f67
fix incorrect window destroy (#4323)
* fix incorrect window destroy

* remove duplicate common signals

* Better handling of "shouldclose"

* Better handling of "shouldclose"

* Fix ABI safety issues in exported function for macOS window closing

Address CodeRabbit feedback on ABI safety and data races:
- Change exported function signature to use C types (C.uint, C.bool) for ABI safety
- Convert unconditionallyClose field from bool to atomic uint32 for thread safety
- Update all read/write operations to use atomic operations across platforms

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-06-18 07:31:55 +10:00
..
defaults.go fix incorrect window destroy (#4323) 2025-06-18 07:31:55 +10:00
events.go Fix event generation issues. 2025-05-31 17:13:54 +10:00
events.h [darwin] add support for quitting app 2024-01-08 21:22:33 +11:00
events.txt Fix mac/js events 2025-02-02 10:22:11 +11:00
events_darwin.go [darwin] Disable listener caching. Run execJS on main thread. 2023-10-07 20:08:22 +11:00
events_darwin.h Fix mac/js events 2025-02-02 10:22:11 +11:00
events_linux.go Update windowSetupSignalHandlers & linux events 2024-03-06 11:42:19 -06:00
events_linux.h Auto build docs/types for runtime module 2025-01-31 16:34:39 +11:00
README.md Add events README.md 2023-10-25 20:17:41 +11:00

Events

This package is used to generate the event management code and to allow quick addition of events.

Usage

  1. Add events to events.txt
  2. Run task generate:events

Notes

For events that you want to handle manually, add a ! to the end of the event name and add custom code into the appropriate platform. See this PR for an example of how to do this.