~Changed how the fullscreen detection work. Checking by Topmost was a stupid idea. It will now check for the window to fill the whole screen area.

This commit is contained in:
Boris Makogonyuk
2015-10-08 00:52:52 +02:00
parent 7273e1218a
commit 3fbebfc283
2 changed files with 67 additions and 20 deletions

View File

@@ -362,11 +362,11 @@ namespace Wox
/// <returns></returns>
private bool ShouldIgnoreHotkeys()
{
if (!IsVisible
&& UserSettingStorage.Instance.IgnoreHotkeysOnTopMostFocus
&& WindowIntelopHelper.IsForegroundWindowTopMost())
return true;
//double if to omit calling win32 function
if (UserSettingStorage.Instance.IgnoreHotkeysOnTopMostFocus)
if(WindowIntelopHelper.IsWindowFullscreen())
return true;
return false;
}