aboutsummaryrefslogtreecommitdiff
path: root/devel/electron13/files/patch-ui_views_controls_label.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron13/files/patch-ui_views_controls_label.cc')
-rw-r--r--devel/electron13/files/patch-ui_views_controls_label.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron13/files/patch-ui_views_controls_label.cc b/devel/electron13/files/patch-ui_views_controls_label.cc
new file mode 100644
index 000000000000..a409f67bc434
--- /dev/null
+++ b/devel/electron13/files/patch-ui_views_controls_label.cc
@@ -0,0 +1,20 @@
+--- ui/views/controls/label.cc.orig 2021-07-15 19:14:08 UTC
++++ ui/views/controls/label.cc
+@@ -817,7 +817,7 @@ bool Label::OnMousePressed(const ui::MouseEvent& event
+
+ // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
+ // of lacros-chrome is complete.
+-#if defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
++#if defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || defined(OS_BSD)
+ if (event.IsOnlyMiddleMouseButton() && GetFocusManager() && !had_focus)
+ GetFocusManager()->SetFocusedView(this);
+ #endif
+@@ -1006,7 +1006,7 @@ bool Label::PasteSelectionClipboard() {
+ void Label::UpdateSelectionClipboard() {
+ // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
+ // of lacros-chrome is complete.
+-#if defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
++#if defined(OS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || defined(OS_BSD)
+ if (!GetObscured()) {
+ ui::ScopedClipboardWriter(ui::ClipboardBuffer::kSelection)
+ .WriteText(GetSelectedText());