summaryrefslogtreecommitdiff
path: root/www/iridium/files/patch-ui_events_event.cc
diff options
context:
space:
mode:
Diffstat (limited to 'www/iridium/files/patch-ui_events_event.cc')
-rw-r--r--www/iridium/files/patch-ui_events_event.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/www/iridium/files/patch-ui_events_event.cc b/www/iridium/files/patch-ui_events_event.cc
new file mode 100644
index 000000000000..8df074815db5
--- /dev/null
+++ b/www/iridium/files/patch-ui_events_event.cc
@@ -0,0 +1,20 @@
+--- ui/events/event.cc.orig 2022-03-28 18:11:04 UTC
++++ ui/events/event.cc
+@@ -452,7 +452,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)) {
+@@ -934,7 +934,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.