aboutsummaryrefslogtreecommitdiff
path: root/devel/electron23/files/patch-ui_views_focus_focus__manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'devel/electron23/files/patch-ui_views_focus_focus__manager.cc')
-rw-r--r--devel/electron23/files/patch-ui_views_focus_focus__manager.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron23/files/patch-ui_views_focus_focus__manager.cc b/devel/electron23/files/patch-ui_views_focus_focus__manager.cc
new file mode 100644
index 000000000000..6fc436d0917a
--- /dev/null
+++ b/devel/electron23/files/patch-ui_views_focus_focus__manager.cc
@@ -0,0 +1,20 @@
+--- ui/views/focus/focus_manager.cc.orig 2023-02-01 18:43:52 UTC
++++ ui/views/focus/focus_manager.cc
+@@ -625,7 +625,7 @@ bool FocusManager::RedirectAcceleratorToBubbleAnchorWi
+
+ // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
+ // of lacros-chrome is complete.
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)
+ // Processing an accelerator can delete things. Because we
+ // need these objects afterwards on Linux, save widget_ as weak pointer and
+ // save the close_on_deactivate property value of widget_delegate in a
+@@ -642,7 +642,7 @@ bool FocusManager::RedirectAcceleratorToBubbleAnchorWi
+
+ // TODO(crbug.com/1052397): Revisit the macro expression once build flag switch
+ // of lacros-chrome is complete.
+-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS)
++#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_BSD)
+ // Need to manually close the bubble widget on Linux. On Linux when the
+ // bubble is shown, the main widget remains active. Because of that when
+ // focus is set to the main widget to process accelerator, the main widget