Commit graph brutal/Brutal.ImGui.Backends/PlatformBackends
Author SHA1 Message Date
Laurens de Voogd
66b9705837 Return null from GlfwBackend.GetClipboardText when the clipboard holds no text
glfwGetClipboardString returns NULL when the clipboard cannot be converted to text (GLFW_FORMAT_UNAVAILABLE), and Glfw.Clipboard is declared string? for it. Passing that null to Utf8.GetByteCount threw ArgumentNullException inside the native callback, which ended the process on Ctrl+V. ImGui treats a null clipboard as nothing to paste, as with the C++ imgui_impl_glfw.

Fixes #8

Signed-off-by: Laurens de Voogd <laurens@devoogd.be>
2026-10-15 09:59:41 +02:00
Rian Drake
b578433e37 first 2026-10-15 17:10:50 +13:00