23 lines
904 B
Plaintext
23 lines
904 B
Plaintext
$OpenBSD: patch-ui_views_controls_label_cc,v 1.5 2018/05/04 07:14:58 robert Exp $
|
|
Index: ui/views/controls/label.cc
|
|
--- ui/views/controls/label.cc.orig
|
|
+++ ui/views/controls/label.cc
|
|
@@ -550,7 +550,7 @@ bool Label::OnMousePressed(const ui::MouseEvent& event
|
|
GetFocusManager()->SetFocusedView(this);
|
|
}
|
|
|
|
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
|
|
+#if (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
|
|
if (event.IsOnlyMiddleMouseButton() && GetFocusManager() && !had_focus)
|
|
GetFocusManager()->SetFocusedView(this);
|
|
#endif
|
|
@@ -727,7 +727,7 @@ bool Label::PasteSelectionClipboard() {
|
|
}
|
|
|
|
void Label::UpdateSelectionClipboard() {
|
|
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
|
|
+#if (defined(OS_BSD) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
|
|
if (!obscured()) {
|
|
ui::ScopedClipboardWriter(ui::CLIPBOARD_TYPE_SELECTION)
|
|
.WriteText(GetSelectedText());
|