mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-06 01:46:35 +00:00
22 lines
903 B
C++
22 lines
903 B
C++
diff --git a/widget/windows/nsWindow.cpp b/widget/windows/nsWindow.cpp
|
|
index 209fa7536df662e24bc6739b7ac9f911fba70ff0..321bb19cf7996a4632110e0099585d7e4ca4ca8a 100644
|
|
--- a/widget/windows/nsWindow.cpp
|
|
+++ b/widget/windows/nsWindow.cpp
|
|
@@ -165,6 +165,7 @@
|
|
#include "mozilla/StaticPrefs_layout.h"
|
|
#include "mozilla/StaticPrefs_ui.h"
|
|
#include "mozilla/StaticPrefs_widget.h"
|
|
+#include "mozilla/StaticPrefs_zen.h"
|
|
#include "nsNativeAppSupportWin.h"
|
|
|
|
#include "nsIGfxInfo.h"
|
|
@@ -2535,7 +2536,7 @@ void nsWindow::SetMicaBackdrop(bool aEnabled) {
|
|
|
|
// Enable Mica Alt Material if available.
|
|
const DWM_SYSTEMBACKDROP_TYPE type =
|
|
- aEnabled ? DWMSBT_TABBEDWINDOW : DWMSBT_AUTO;
|
|
+ aEnabled ? (StaticPrefs::zen_widget_windows_acrylic_AtStartup() ? DWMSBT_TRANSIENTWINDOW : DWMSBT_TABBEDWINDOW) : DWMSBT_AUTO;
|
|
DwmSetWindowAttribute(mWnd, DWMWA_SYSTEMBACKDROP_TYPE, &type, sizeof type);
|
|
}
|
|
|