From dceb7232c682d98517ab045cf814aa60ff56327d Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Tue, 17 Dec 2024 12:44:38 +0000 Subject: [PATCH] Fix deadlocking on Linux clipboard test --- internal/driver/glfw/clipboard.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/internal/driver/glfw/clipboard.go b/internal/driver/glfw/clipboard.go index cb0bfb3fa0..37cbda2713 100644 --- a/internal/driver/glfw/clipboard.go +++ b/internal/driver/glfw/clipboard.go @@ -39,11 +39,7 @@ func (c clipboard) Content() string { } func (c clipboard) content() string { - content := "" - runOnMain(func() { - content = glfw.GetClipboardString() - }) - return content + return glfw.GetClipboardString() } // SetContent sets the clipboard content @@ -64,7 +60,5 @@ func (c clipboard) SetContent(content string) { } func (c clipboard) setContent(content string) { - runOnMain(func() { - glfw.SetClipboardString(content) - }) + glfw.SetClipboardString(content) }