Simplify clipboard operations in GTK (PR #26278)

22 views
Skip to first unread message

davidedmundson

unread,
Mar 9, 2026, 11:50:13 AM (5 days ago) Mar 9
to wx-...@googlegroups.com, Subscribed

When changing the clipboard contents the current code emits a lot of noise on the X11 connection, it clears the contents and verifies it's empty before settings the new content.

This non-atomic operation is problematic for desktop environments with clipboard managers that try to replace an empty clipboard. It becomes racey with us setting our new contents.

See #26265


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/26278

Commit Summary

  • bd0fa0d Simplify clipboard operations in GTK

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26278@github.com>

davidedmundson

unread,
Mar 9, 2026, 11:54:07 AM (5 days ago) Mar 9
to wx-...@googlegroups.com, Push

@davidedmundson pushed 1 commit.

  • 18261dc Simplify clipboard operations in GTK


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26278/before/bd0fa0d9759412fb6f950f0fa4f444953c4386ef/after/18261dc7ef831dfc17032a4aa36ce58c568c3809@github.com>

davidedmundson

unread,
Mar 9, 2026, 12:09:27 PM (5 days ago) Mar 9
to wx-...@googlegroups.com, Push

@davidedmundson pushed 1 commit.

  • 9b65195 Simplify clipboard operations in GTK


View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26278/before/18261dc7ef831dfc17032a4aa36ce58c568c3809/after/9b6519596f98c296e06e5a7ed86788683aa18988@github.com>

VZ

unread,
Mar 9, 2026, 12:10:12 PM (5 days ago) Mar 9
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26278)

Thanks David! Other than (presumably accidental?) change to submodules, this looks fine to me, so I'll merge this if there are no objections.

And this is probably safe to backport to 3.2 too, at least I can't think of anything this change could break, can anyone else?


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26278/c4024909733@github.com>

davidedmundson

unread,
Mar 9, 2026, 12:26:58 PM (5 days ago) Mar 9
to wx-...@googlegroups.com, Subscribed
davidedmundson left a comment (wxWidgets/wxWidgets#26278)

And this is probably safe to backport to 3.2 too,

Yeah, I did my main real-world testing for the actual bugfix against 3.2.
I can't see anything that would break.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26278/c4025021219@github.com>

VZ

unread,
Mar 13, 2026, 11:02:50 AM (yesterday) Mar 13
to wx-...@googlegroups.com, Subscribed

Closed #26278 via f11053a.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26278/issue_event/23549708497@github.com>

Reply all
Reply to author
Forward
0 new messages