mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 19:06:28 -04:00
Finally, after a long wait, an electron port for FreeBSD lands in the portstree. A huge thanks to everyone contributed to this huge effort and to the maintainer that is willing to take the burden of the maintainership!
20 lines
812 B
C++
20 lines
812 B
C++
--- ui/views/controls/label.cc.orig 2019-03-15 06:38:29 UTC
|
|
+++ ui/views/controls/label.cc
|
|
@@ -549,7 +549,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
|
|
@@ -734,7 +734,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());
|