mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 09:55:40 +00:00
app: delete workarounds for driver callback deadlocks
Driver methods are invoked during event processing, but some of them may generate events that would in turn deadlock because event processing is not re-entrant. However, a previous change moved all such calls outside event processing and so chained events can no longer deadlock. This change deletes the workarounds. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -256,7 +256,7 @@ func onTouch(last C.int, view, touchRef C.CFTypeRef, phase C.NSInteger, x, y C.C
|
||||
|
||||
func (w *window) ReadClipboard() {
|
||||
content := nsstringToString(C.readClipboard())
|
||||
go w.w.Event(clipboard.Event{Text: content})
|
||||
w.w.Event(clipboard.Event{Text: content})
|
||||
}
|
||||
|
||||
func (w *window) WriteClipboard(s string) {
|
||||
|
||||
Reference in New Issue
Block a user