mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 06:10:30 -04:00
20 lines
812 B
C++
20 lines
812 B
C++
--- ui/views/controls/label.cc.orig 2019-03-11 22:01:19 UTC
|
|
+++ ui/views/controls/label.cc
|
|
@@ -542,7 +542,7 @@ bool Label::OnMousePressed(const ui::MouseEvent& event
|
|
GetFocusManager()->SetFocusedView(this);
|
|
}
|
|
|
|
-#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
|
|
+#if (defined(OS_LINUX) || defined(OS_BSD)) && !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_LINUX) || defined(OS_BSD)) && !defined(OS_CHROMEOS)
|
|
if (!obscured()) {
|
|
ui::ScopedClipboardWriter(ui::CLIPBOARD_TYPE_SELECTION)
|
|
.WriteText(GetSelectedText());
|