Fix Windows not deblurring when name changes
This commit is contained in:
parent
6d09501a7f
commit
3b52c1a5ee
@ -54,17 +54,21 @@ public class Blur
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (ShouldWindowBeBlurred(windowInfo))
|
if (ShouldWindowBeBlurred(windowInfo))
|
||||||
|
{
|
||||||
if(!maximisedWindowReached)
|
if(!maximisedWindowReached)
|
||||||
BlurWindow(windowInfo);
|
BlurWindow(windowInfo);
|
||||||
else if(maximisedWindowReached)
|
else if(maximisedWindowReached)
|
||||||
DeleteBlur(windowInfo);
|
DeleteBlur(windowInfo);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
DeleteBlur(windowInfo);
|
||||||
|
|
||||||
if (windowInfo.WindowCommands is ShowWindowCommands.Maximize or ShowWindowCommands.ShowMaximized)
|
if (windowInfo.WindowCommands is ShowWindowCommands.Maximize or ShowWindowCommands.ShowMaximized)
|
||||||
maximisedWindowReached = true;
|
maximisedWindowReached = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach(IntPtr blurredWindow in _windowHandleSceneItems.Keys.ToArray())
|
foreach(IntPtr blurredWindow in _windowHandleSceneItems.Keys.ToArray())
|
||||||
if(windowInfos.All(w => w.WindowHandle != blurredWindow))
|
if(windowInfos.All(w => w.WindowHandle != blurredWindow) || !ShouldWindowBeBlurred(windowInfos.First(w => w.WindowHandle == blurredWindow)))
|
||||||
DeleteBlur(blurredWindow);
|
DeleteBlur(blurredWindow);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user