Skip to content

Commit 9ecd891

Browse files
fix: Windows FrameView always appearing inactive (#38473)
Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <[email protected]>
1 parent da87a47 commit 9ecd891

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

shell/browser/ui/win/electron_desktop_window_tree_host_win.cc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@ bool ElectronDesktopWindowTreeHostWin::PreHandleMSG(UINT message,
3737
return native_window_view_->PreHandleMSG(message, w_param, l_param, result);
3838
}
3939

40-
bool ElectronDesktopWindowTreeHostWin::ShouldPaintAsActive() const {
41-
// Tell Chromium to use system default behavior when rendering inactive
42-
// titlebar, otherwise it would render inactive titlebar as active under
43-
// some cases.
44-
// See also https://github.com/electron/electron/issues/24647.
45-
return false;
46-
}
47-
4840
bool ElectronDesktopWindowTreeHostWin::GetDwmFrameInsetsInPixels(
4941
gfx::Insets* insets) const {
5042
// Set DWMFrameInsets to prevent maximized frameless window from bleeding

shell/browser/ui/win/electron_desktop_window_tree_host_win.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ class ElectronDesktopWindowTreeHostWin : public views::DesktopWindowTreeHostWin,
3131
WPARAM w_param,
3232
LPARAM l_param,
3333
LRESULT* result) override;
34-
bool ShouldPaintAsActive() const override;
3534
bool GetDwmFrameInsetsInPixels(gfx::Insets* insets) const override;
3635
bool GetClientAreaInsets(gfx::Insets* insets,
3736
HMONITOR monitor) const override;

0 commit comments

Comments
 (0)