Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report for Bug 20326 on
GitHub or Developer Community if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
In special cases on GitHub you might also want the comments:
GitHub Markdown with public comments
Created attachment 6974 [details]
Contains mono_app.cs and gtk_app.c
1) Run a mono app which puts data on the clipboard on Linux (e.g. mono_app.cs)
2) Run a GTK app which reads the data types which are on the clipboard via gtk_clipboard_wait_for_types() (e.g. gtk_app.c)
The GTK app should be able to get the data types which are on the clipboard. gtk_app should print a number > 0
The GTK app cannot get the data types which are on the clipboard. gtk_app prints -1
The bug is that GTK expects that the X11 call
XConvertSelection(display, selection, XInternAtom(display, "TARGETS", false), property, requestor, time)
sets |property| to a property of type XA_ATOM.
mono seems to set |property| to a property of type XInternAtom(display, "TARGETS", false)
Based on reading http://tronche.com/gui/x/icccm/sec-2.html#s-2 this looks like a bug in mono as opposed to a bug in GTK.
mono_app.cs -> "mcs mono_app.cs"
gtk_app.c -> gcc `pkg-config gtk+-2.0 --cflags` gtk_app.c -o gtk_app `pkg-config gtk+-2.0 --libs`
This bug keeps me from being able to copy from KeePass to Firefox and other GTK apps.