D15629: [xwl] text/x-uri converter for selected X url list format targets

Roman Gilg <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
romangg created this revision.
romangg added a reviewer: KWin.
Herald added a project: KWin.
Herald added a subscriber: kwin.
romangg requested review of this revision.

REVISION SUMMARY
  On X several target atoms are established to provide data similar to the
  text/uri-list target format (the respective MIME on Wayland is called
  text/x-uri).
  
  Firefox can send link data in the NETSCAPE_URL format ones. Chromium on the
  other side sends link data in the text/x-moz-url format, which transports
  UTF-16 text.
  
  For both these peculiarities this patch provides converter functions, that
  translate these formats into the Wayland native text/x-uri format. In the
  other direction no translation is necessary. Both browsers supports the
  text/uri-list format when receiving link lists.

TEST PLAN
  Manually with Firefox and Chromium.

REPOSITORY
  R108 KWin

BRANCH
  0uriConvertXwl

REVISION DETAIL
  https://phabricator.kde.org/D15629

AFFECTED FILES
  atoms.cpp
  atoms.h
  xwl/drag_x.cpp
  xwl/selection.cpp
  xwl/selection.h
  xwl/transfer.cpp
  xwl/transfer.h

To: romangg, #kwin
Cc: kwin, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.