Skip to content

GdkWin32: switch to new clipboard API

gwillems requested to merge g.willems/gtk:gdkwin32_modernize_clipboard into main

This is a backport of !1143 (merged) to gtk4.

SetClipboardViewer() API is obsolete is prone to clipboard chain breaks from other applications. Use recommended AddClipboardFormatListener() instead.

See the reference doc.

Fixes #442 (closed)

Special thanks to @lb90 for the support on discourse for debugging the issue and pinpointing the old gtk+3 fix.

Edited by gwillems

Merge request reports