xpra icon
Bug tracker and wiki

Opened 8 months ago

Last modified 7 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.3
Component: core Version: trunk
Keywords: Cc: dennis.schridde@…

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 (3)

comment:1 Changed 8 months 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 8 months ago by Antoine Martin (previous) (diff)

comment:2 Changed 4 months ago by urzds

Cc: dennis.schridde@… added

comment:3 Changed 7 weeks ago by Antoine Martin

Milestone: 2.22.3
Note: See TracTickets for help on using tickets.