mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Issue: If Wox was set to ignore hotkeys on full-screen it would fail.
Cause: Compared IntPtr with null. IntPtr is never null.
This commit is contained in:
parent
326ee9a9c2
commit
559eebbb70
1 changed files with 3 additions and 3 deletions
|
|
@ -20,14 +20,14 @@ namespace Wox.Helper
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return _hwnd_shell != null ? _hwnd_shell : _hwnd_shell = GetShellWindow();
|
return _hwnd_shell != IntPtr.Zero ? _hwnd_shell : _hwnd_shell = GetShellWindow();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private static IntPtr HWND_DESKTOP
|
private static IntPtr HWND_DESKTOP
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return _hwnd_desktop != null ? _hwnd_desktop : _hwnd_desktop = GetDesktopWindow();
|
return _hwnd_desktop != IntPtr.Zero ? _hwnd_desktop : _hwnd_desktop = GetDesktopWindow();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue