fix: backgroundMaterial
on initial activate (#46657)
* fix: backgroundMaterial on initial activate Closes https://github.com/electron/electron/issues/38466 * Update patches/chromium/fix_activate_background_material_on_windows.patch Co-authored-by: Charles Kerr <charles@charleskerr.com> --------- Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
a29e1170b9
commit
437542767a
1 changed files with 10 additions and 1 deletions
|
@ -14,7 +14,7 @@ This patch likely can't be upstreamed as-is, as Chromium doesn't have
|
||||||
this use case in mind currently.
|
this use case in mind currently.
|
||||||
|
|
||||||
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
|
diff --git a/ui/views/win/hwnd_message_handler.cc b/ui/views/win/hwnd_message_handler.cc
|
||||||
index 29829e282edfa8821bd366a9e9a3755d7f3f8643..9feff09aa83eb88460dce786ab2514f0a9b21c6e 100644
|
index 29829e282edfa8821bd366a9e9a3755d7f3f8643..661864ab6aad78a721ac921ae778c40085cdc23e 100644
|
||||||
--- a/ui/views/win/hwnd_message_handler.cc
|
--- a/ui/views/win/hwnd_message_handler.cc
|
||||||
+++ b/ui/views/win/hwnd_message_handler.cc
|
+++ b/ui/views/win/hwnd_message_handler.cc
|
||||||
@@ -952,13 +952,13 @@ void HWNDMessageHandler::FrameTypeChanged() {
|
@@ -952,13 +952,13 @@ void HWNDMessageHandler::FrameTypeChanged() {
|
||||||
|
@ -33,6 +33,15 @@ index 29829e282edfa8821bd366a9e9a3755d7f3f8643..9feff09aa83eb88460dce786ab2514f0
|
||||||
}
|
}
|
||||||
|
|
||||||
void HWNDMessageHandler::SetWindowIcons(const gfx::ImageSkia& window_icon,
|
void HWNDMessageHandler::SetWindowIcons(const gfx::ImageSkia& window_icon,
|
||||||
|
@@ -1755,7 +1755,7 @@ void HWNDMessageHandler::OnActivateApp(BOOL active, DWORD thread_id) {
|
||||||
|
if (delegate_->HasNonClientView() && !active &&
|
||||||
|
thread_id != GetCurrentThreadId()) {
|
||||||
|
// Update the native frame if it is rendering the non-client area.
|
||||||
|
- if (HasSystemFrame()) {
|
||||||
|
+ if (is_translucent_ || HasSystemFrame()) {
|
||||||
|
DefWindowProcWithRedrawLock(WM_NCACTIVATE, FALSE, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2356,17 +2356,18 @@ LRESULT HWNDMessageHandler::OnNCActivate(UINT message,
|
@@ -2356,17 +2356,18 @@ LRESULT HWNDMessageHandler::OnNCActivate(UINT message,
|
||||||
delegate_->SchedulePaint();
|
delegate_->SchedulePaint();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue