fix: Windows FrameView always appearing inactive (#38468)
This commit is contained in:
parent
ddcec84ace
commit
56138d879e
2 changed files with 0 additions and 9 deletions
|
@ -37,14 +37,6 @@ bool ElectronDesktopWindowTreeHostWin::PreHandleMSG(UINT message,
|
||||||
return native_window_view_->PreHandleMSG(message, w_param, l_param, result);
|
return native_window_view_->PreHandleMSG(message, w_param, l_param, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ElectronDesktopWindowTreeHostWin::ShouldPaintAsActive() const {
|
|
||||||
// Tell Chromium to use system default behavior when rendering inactive
|
|
||||||
// titlebar, otherwise it would render inactive titlebar as active under
|
|
||||||
// some cases.
|
|
||||||
// See also https://github.com/electron/electron/issues/24647.
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool ElectronDesktopWindowTreeHostWin::GetDwmFrameInsetsInPixels(
|
bool ElectronDesktopWindowTreeHostWin::GetDwmFrameInsetsInPixels(
|
||||||
gfx::Insets* insets) const {
|
gfx::Insets* insets) const {
|
||||||
// Set DWMFrameInsets to prevent maximized frameless window from bleeding
|
// Set DWMFrameInsets to prevent maximized frameless window from bleeding
|
||||||
|
|
|
@ -31,7 +31,6 @@ class ElectronDesktopWindowTreeHostWin : public views::DesktopWindowTreeHostWin,
|
||||||
WPARAM w_param,
|
WPARAM w_param,
|
||||||
LPARAM l_param,
|
LPARAM l_param,
|
||||||
LRESULT* result) override;
|
LRESULT* result) override;
|
||||||
bool ShouldPaintAsActive() const override;
|
|
||||||
bool GetDwmFrameInsetsInPixels(gfx::Insets* insets) const override;
|
bool GetDwmFrameInsetsInPixels(gfx::Insets* insets) const override;
|
||||||
bool GetClientAreaInsets(gfx::Insets* insets,
|
bool GetClientAreaInsets(gfx::Insets* insets,
|
||||||
HMONITOR monitor) const override;
|
HMONITOR monitor) const override;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue