mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 15:45:38 +00:00
a3dc2d6cdc
Before this change, we had a viewDo that serialized a function on a view on a single goroutine. For better or worse, most callbacks in Cocoa happen on the main thread, so we might as well use that. The only exception is the frame callback from the CADisplayLink. We could force that through the main thread as well, but for efficiency settle with making the view-to-window map synchronized. Signed-off-by: Elias Naur <mail@eliasnaur.com>