Skip to content

Commit

Permalink
Merge pull request #1164 from yan12125/fix-x11-paste
Browse files Browse the repository at this point in the history
Map more X11 clipboard MIME types to corresponding converters
  • Loading branch information
p12tic authored Jun 13, 2021
2 parents 12024b9 + cad92e8 commit 7f44afa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/newsfragments/fix-x11-paste.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Map more X11 clipboard MIME types to corresponding converters (https://github.com/debauchee/barrier/issues/344).
4 changes: 4 additions & 0 deletions src/lib/platform/XWindowsClipboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,13 @@ XWindowsClipboard::XWindowsClipboard(IXWindowsImpl* impl, Display* display,
// add converters, most desired first
m_converters.push_back(new XWindowsClipboardHTMLConverter(m_display,
"text/html"));
m_converters.push_back(new XWindowsClipboardHTMLConverter(m_display,
"application/x-moz-nativehtml"));
m_converters.push_back(new XWindowsClipboardBMPConverter(m_display));
m_converters.push_back(new XWindowsClipboardUTF8Converter(m_display,
"text/plain;charset=UTF-8"));
m_converters.push_back(new XWindowsClipboardUTF8Converter(m_display,
"text/plain;charset=utf-8"));
m_converters.push_back(new XWindowsClipboardUTF8Converter(m_display,
"UTF8_STRING"));
m_converters.push_back(new XWindowsClipboardUCS2Converter(m_display,
Expand Down

0 comments on commit 7f44afa

Please sign in to comment.