mono icon indicating copy to clipboard operation
mono copied to clipboard

revamp drag-n-drop and clipboard support for X11 / linux

Open ThomasKuehne opened this issue 4 years ago • 7 comments

  1. moves the content handling from X11Dnd to the new X11SelectionHandler
  2. re-writes the X11 -> mono content detection to deal with mime-type parameters
  3. re-writes the mono -> X11 content detection to deal with native types, URI, IEnumerable<Uri> and null-objects
  4. expands DataFormats.StringFormat/Text/UnicodeText to properly handle charset encodings support text/plain, UTF8_STRING, text/unicode, TEXT as well as STRING
  5. adds DataFormats.DataFormats.Bitmap support for image/png, image/bmp, image/jpeg, image/gif and image/tiff
  6. adds DataFormats.FileDrop support for FILE_NAME, text/x-moz-url and _NETSCAPE_URL
  7. adds DataFormats.CommaSeparatedValue support for text/csv
  8. DataFormats.Serializable now uses a GUID header bevore the actual payload

regarding 1) X11's clipboard and DND content handling is identical and differs only in the selection's ID used thus no need to implement it twice lets find all potential issues in the less critical DND-functions first and then later switch X11Clipboard's content handling to X11SelectionHandler

regarding 2) for example to deal with "text/plain;charset=utf-8"

regarding 8) in line with Window implementation

ThomasKuehne avatar Oct 24 '21 13:10 ThomasKuehne

CLA assistant check
All CLA requirements met.

dnfadmin avatar Oct 24 '21 13:10 dnfadmin

also fixes #12149

ThomasKuehne avatar Dec 01 '21 18:12 ThomasKuehne

Also: Fixes mono#17029 Fixes mono#18079 Fixes mono#18923 Fixes mono#20601

ThomasKuehne avatar Dec 02 '21 22:12 ThomasKuehne

Also: Fixes mono#15511

ThomasKuehne avatar Dec 02 '21 22:12 ThomasKuehne

Is there a reason why this is still blocked? Shouldn't be too difficult if it's just license/cla holding it up.

emk2203 avatar Oct 26 '23 10:10 emk2203

@ThomasKuehne, can I use your PRs in this project https://github.com/DanielVanNoord/System.Windows.Forms?

sancheolz avatar May 24 '24 12:05 sancheolz

@sancheolz , yes you can use my PRs for https://github.com/DanielVanNoord/System.Window

ThomasKuehne avatar May 26 '24 19:05 ThomasKuehne