diff options
Diffstat (limited to 'devel/electron37/files/patch-electron_shell_browser_native__window__views.cc')
| -rw-r--r-- | devel/electron37/files/patch-electron_shell_browser_native__window__views.cc | 24 | 
1 files changed, 12 insertions, 12 deletions
| diff --git a/devel/electron37/files/patch-electron_shell_browser_native__window__views.cc b/devel/electron37/files/patch-electron_shell_browser_native__window__views.cc index a692323fc532..c6693b11ed3e 100644 --- a/devel/electron37/files/patch-electron_shell_browser_native__window__views.cc +++ b/devel/electron37/files/patch-electron_shell_browser_native__window__views.cc @@ -1,4 +1,4 @@ ---- electron/shell/browser/native_window_views.cc.orig	2025-08-13 14:21:20 UTC +--- electron/shell/browser/native_window_views.cc.orig	2025-10-21 05:28:55 UTC  +++ electron/shell/browser/native_window_views.cc  @@ -52,7 +52,7 @@   #include "ui/wm/core/shadow_types.h" @@ -89,8 +89,8 @@  +#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)     // On Linux and Windows the minimum and maximum size should be updated with     // window size when window is not resizable. -   if (!resizable_) { -@@ -1071,7 +1071,7 @@ bool NativeWindowViews::IsClosable() const { +   if (!CanResize()) { +@@ -1074,7 +1074,7 @@ bool NativeWindowViews::IsClosable() const {       return false;     }     return !(info.fState & MFS_DISABLED); @@ -99,7 +99,7 @@     return true;   #endif   } -@@ -1111,7 +1111,7 @@ void NativeWindowViews::Center() { +@@ -1114,7 +1114,7 @@ void NativeWindowViews::Center() {   // for now to avoid breaking API contract, but should consider the long   // term plan for this aligning with upstream.   void NativeWindowViews::Center() { @@ -108,7 +108,7 @@     auto display =         display::Screen::GetScreen()->GetDisplayNearestWindow(GetNativeWindow());     gfx::Rect window_bounds_in_screen = display.work_area(); -@@ -1336,7 +1336,7 @@ void NativeWindowViews::SetMenu(ElectronMenuModel* men +@@ -1339,7 +1339,7 @@ void NativeWindowViews::SetMenu(ElectronMenuModel* men   }   void NativeWindowViews::SetMenu(ElectronMenuModel* menu_model) { @@ -117,7 +117,7 @@     // Remove global menu bar.     if (global_menu_bar_ && menu_model == nullptr) {       global_menu_bar_.reset(); -@@ -1392,7 +1392,7 @@ void NativeWindowViews::SetParentWindow(NativeWindow*  +@@ -1395,7 +1395,7 @@ void NativeWindowViews::SetParentWindow(NativeWindow*    void NativeWindowViews::SetParentWindow(NativeWindow* parent) {     NativeWindow::SetParentWindow(parent); @@ -126,7 +126,7 @@     if (x11_util::IsX11()) {       auto* connection = x11::Connection::Get();       connection->SetProperty( -@@ -1438,7 +1438,7 @@ void NativeWindowViews::SetProgressBar(double progress +@@ -1441,7 +1441,7 @@ void NativeWindowViews::SetProgressBar(double progress                                          NativeWindow::ProgressState state) {   #if BUILDFLAG(IS_WIN)     taskbar_host_.SetProgressBar(GetAcceleratedWidget(), progress, state); @@ -135,7 +135,7 @@     if (unity::IsRunning()) {       unity::SetProgressFraction(progress);     } -@@ -1564,7 +1564,7 @@ content::DesktopMediaID NativeWindowViews::GetDesktopM +@@ -1567,7 +1567,7 @@ content::DesktopMediaID NativeWindowViews::GetDesktopM   #if BUILDFLAG(IS_WIN)     window_handle =         reinterpret_cast<content::DesktopMediaID::Id>(accelerated_widget); @@ -144,7 +144,7 @@     window_handle = static_cast<uint32_t>(accelerated_widget);   #endif     aura::WindowTreeHost* const host = -@@ -1662,7 +1662,7 @@ void NativeWindowViews::SetIcon(HICON window_icon, HIC +@@ -1665,7 +1665,7 @@ void NativeWindowViews::SetIcon(HICON window_icon, HIC     SendMessage(hwnd, WM_SETICON, ICON_BIG,                 reinterpret_cast<LPARAM>(app_icon_.get()));   } @@ -153,7 +153,7 @@   void NativeWindowViews::SetIcon(const gfx::ImageSkia& icon) {     auto* tree_host = views::DesktopWindowTreeHostLinux::GetHostForWidget(         GetAcceleratedWidget()); -@@ -1783,7 +1783,7 @@ bool NativeWindowViews::CanMinimize() const { +@@ -1786,7 +1786,7 @@ bool NativeWindowViews::CanMinimize() const {   bool NativeWindowViews::CanMinimize() const {   #if BUILDFLAG(IS_WIN)     return minimizable_; @@ -162,7 +162,7 @@     return true;   #endif   } -@@ -1839,7 +1839,7 @@ void NativeWindowViews::HandleKeyboardEvent( +@@ -1842,7 +1842,7 @@ void NativeWindowViews::HandleKeyboardEvent(     if (widget_destroyed_)       return; @@ -171,7 +171,7 @@     if (event.windows_key_code == ui::VKEY_BROWSER_BACK)       NotifyWindowExecuteAppCommand(kBrowserBackward);     else if (event.windows_key_code == ui::VKEY_BROWSER_FORWARD) -@@ -1858,7 +1858,7 @@ void NativeWindowViews::OnMouseEvent(ui::MouseEvent* e +@@ -1861,7 +1861,7 @@ void NativeWindowViews::OnMouseEvent(ui::MouseEvent* e     // Alt+Click should not toggle menu bar.     root_view_.ResetAltState(); | 
