Skip to content

Commit

Permalink
Fix #42
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcechord committed Oct 14, 2019
1 parent 3991d3e commit 4940913
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions FluentWPF/Utility/AcrylicHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,10 @@ internal static void EnableBlur(IntPtr hwnd, AccentFlagsType style = AccentFlags
// ウィンドウ背景のぼかしを行うのはWindows10の場合のみ
// OSのバージョンに従い、AccentStateを切り替える
var currentVersion = SystemInfo.Version.Value;
if (currentVersion == VersionInfos.Windows10_1903)
if (currentVersion >= VersionInfos.Windows10_1903)
{
// Windows10 1903では、ACCENT_ENABLE_ACRYLICBLURBEHINDを用いると、ウィンドウのドラッグ移動などでマウス操作に追従しなくなる。
// Windows10 1903以降では、ACCENT_ENABLE_ACRYLICBLURBEHINDを用いると、ウィンドウのドラッグ移動などでマウス操作に追従しなくなる。
// SetWindowCompositionAttribute関数の動作が修正されるまで、ACCENT_ENABLE_ACRYLICBLURBEHINDは使用しない。
accent.AccentState = AccentState.ACCENT_ENABLE_BLURBEHIND;
}
else if (currentVersion >= VersionInfos.Windows10_1809)
Expand Down

0 comments on commit 4940913

Please sign in to comment.