xpra icon
Bug tracker and wiki

Opened 2 weeks ago

Last modified 2 weeks ago

#1494 assigned enhancement

drag and drop: support images, text, server-to-client, etc

Reported by: Antoine Martin Owned by: Antoine Martin
Priority: major Milestone: 2.2
Component: core Version: trunk
Keywords: Cc:

Description

Follow up from #1493.

  • we have the source window and target window, so we should be able to send the data to the specific application window that was pointed to (if it supports it... which we won't know about until it is too late?)
  • we should handle more data types and sanitize them: the "selection-data" structure can give us plain text, UTF8, images, etc.
  • this same code could be re-used for sanitizing clipboard data (ie: images)
  • on the server-side, we may be able to register the "world-window" as a drop target so that we can trigger drag-n-drop events from server to client

Change History (1)

comment:1 Changed 2 weeks ago by Antoine Martin

Status: newassigned

Examples of targets with common applications:

  • browser URL:
    'STRING', 'UTF8_STRING', 'text/plain', 'text/x-moz-url', 'TEXT', '_NETSCAPE_URL'
    
  • browser text data:
    'text/x-moz-url', '_NETSCAPE_URL', 'application/x-moz-custom-clipdata', 'text/unicode', 'text/plain;charset=utf-8', 'text/plain', 'text/html'
    
  • browser image:
    STRING, UTF8_STRING, XdndDirectSave0, text/plain, text/x-moz-url, TEXT, text/html, chromium/x-renderer-taint, application/octet-stream
    

Docs:

Last edited 2 weeks ago by Antoine Martin (previous) (diff)
Note: See TracTickets for help on using tickets.