mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Merge pull request #341 from lances101/master
Fixed #339. Hotkeys were ignored on desktop
This commit is contained in:
commit
267f2afab6
1 changed files with 3 additions and 3 deletions
|
|
@ -13,21 +13,21 @@ namespace Wox.Helper
|
||||||
private const int WS_SYSMENU = 0x80000; //WPF's Message code for System Menu
|
private const int WS_SYSMENU = 0x80000; //WPF's Message code for System Menu
|
||||||
private static IntPtr _hwnd_shell;
|
private static IntPtr _hwnd_shell;
|
||||||
private static IntPtr _hwnd_desktop;
|
private static IntPtr _hwnd_desktop;
|
||||||
|
|
||||||
//Accessors for shell and desktop handlers
|
//Accessors for shell and desktop handlers
|
||||||
//Will set the variables once and then will return them
|
//Will set the variables once and then will return them
|
||||||
private static IntPtr HWND_SHELL
|
private static IntPtr HWND_SHELL
|
||||||
{
|
{
|
||||||
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