diff options
Diffstat (limited to 'devel/electron18/files/patch-electron_shell_common_api_electron__api__clipboard.cc')
-rw-r--r-- | devel/electron18/files/patch-electron_shell_common_api_electron__api__clipboard.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron18/files/patch-electron_shell_common_api_electron__api__clipboard.cc b/devel/electron18/files/patch-electron_shell_common_api_electron__api__clipboard.cc new file mode 100644 index 000000000000..bb10f3c5d418 --- /dev/null +++ b/devel/electron18/files/patch-electron_shell_common_api_electron__api__clipboard.cc @@ -0,0 +1,20 @@ +--- electron/shell/common/api/electron_api_clipboard.cc.orig 2022-05-18 15:31:32 UTC ++++ electron/shell/common/api/electron_api_clipboard.cc +@@ -56,7 +56,7 @@ std::string Clipboard::Read(const std::string& format_ + ui::ClipboardFormatType::CustomPlatformType(format_string)); + bool rawFormatAvailable = clipboard->IsFormatAvailable( + rawFormat, ui::ClipboardBuffer::kCopyPaste, /* data_dst = */ nullptr); +-#if BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + if (!rawFormatAvailable) { + rawFormatAvailable = clipboard->IsFormatAvailable( + rawFormat, ui::ClipboardBuffer::kSelection, /* data_dst = */ nullptr); +@@ -72,7 +72,7 @@ std::string Clipboard::Read(const std::string& format_ + custom_format_names = + clipboard->ExtractCustomPlatformNames(ui::ClipboardBuffer::kCopyPaste, + /* data_dst = */ nullptr); +-#if BUILDFLAG(IS_LINUX) ++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD) + if (custom_format_names.find(format_string) == custom_format_names.end()) { + custom_format_names = + clipboard->ExtractCustomPlatformNames(ui::ClipboardBuffer::kSelection, |