SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
30
www/iridium/patches/patch-ui_events_event_cc
Normal file
30
www/iridium/patches/patch-ui_events_event_cc
Normal file
|
@ -0,0 +1,30 @@
|
|||
Index: ui/events/event.cc
|
||||
--- ui/events/event.cc.orig
|
||||
+++ ui/events/event.cc
|
||||
@@ -420,7 +420,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)) {
|
||||
@@ -675,7 +675,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
|
||||
@@ -930,7 +930,7 @@ void KeyEvent::InitializeNative() {
|
||||
if (synthesize_key_repeat_enabled_ && IsRepeated(GetLastKeyEvent()))
|
||||
set_flags(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.
|
Loading…
Add table
Add a link
Reference in a new issue