mirror of
https://git.freebsd.org/ports.git
synced 2025-07-03 18:39:16 -04:00
Security: https://vuxml.freebsd.org/freebsd/5c777f88-40ff-4e1e-884b-ad63dfb9bb15.html Security: https://vuxml.freebsd.org/freebsd/9c91e1f8-f255-4b57-babe-2e385558f1dc.html
29 lines
1.2 KiB
C++
29 lines
1.2 KiB
C++
--- ui/events/event.cc.orig 2025-07-02 06:08:04 UTC
|
|
+++ ui/events/event.cc
|
|
@@ -375,7 +375,7 @@ std::string LocatedEvent::ToString() const {
|
|
MouseEvent::MouseEvent(const PlatformEvent& native_event)
|
|
: LocatedEvent(native_event),
|
|
changed_button_flags_(GetChangedMouseButtonFlagsFromNative(native_event)),
|
|
-#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
movement_(GetMouseMovementFromNative(native_event)),
|
|
#endif
|
|
pointer_details_(GetMousePointerDetailsFromNative(native_event)) {
|
|
@@ -631,7 +631,7 @@ std::unique_ptr<Event> MouseWheelEvent::Clone() const
|
|
return std::make_unique<MouseWheelEvent>(*this);
|
|
}
|
|
|
|
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
// This value matches Windows, Fuchsia WHEEL_DELTA, and (roughly) Firefox on
|
|
// Linux.
|
|
// static
|
|
@@ -894,7 +894,7 @@ void KeyEvent::InitializeNative() {
|
|
SetFlags(flags() | EF_IS_REPEAT);
|
|
}
|
|
|
|
-#if BUILDFLAG(IS_LINUX)
|
|
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
|
|
NormalizeFlags();
|
|
#elif BUILDFLAG(IS_WIN)
|
|
// Only Windows has native character events.
|