mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 09:36:41 -04:00
Security: https://vuxml.freebsd.org/freebsd/c53cd328-8131-4fc2-a083-a9e9d45e3028.html Security: https://vuxml.freebsd.org/freebsd/756839e1-cd78-4082-9f9e-d0da616ca8dd.html
29 lines
1.3 KiB
C++
29 lines
1.3 KiB
C++
--- ui/events/event.cc.orig 2025-01-15 09:18:26 UTC
|
|
+++ ui/events/event.cc
|
|
@@ -373,7 +373,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)) {
|
|
@@ -629,7 +629,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
|
|
@@ -889,7 +889,7 @@ void KeyEvent::InitializeNative() {
|
|
if (synthesize_key_repeat_enabled_ && IsRepeated(GetLastKeyEvent()))
|
|
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.
|