mirror of
https://github.com/valinet/ExplorerPatcher.git
synced 2025-02-01 04:05:47 +01:00
Fixed show desktop on Win+X
This commit is contained in:
parent
7ba90b3772
commit
b177b49743
@ -239,7 +239,12 @@ DWORD ShowLauncherTipContextMenu(
|
||||
(char*)params->_this - 0x58,
|
||||
7
|
||||
);
|
||||
ShowWindow(hWinXWnd, SW_SHOW);
|
||||
// DO NOT USE ShowWindow here; it breaks the window order
|
||||
// and renders the desktop toggle unusable; but leave
|
||||
// SetForegroundWindow as is so that the menu gets dismissed
|
||||
// when the user clicks outside it
|
||||
//
|
||||
// ShowWindow(hWinXWnd, SW_SHOW);
|
||||
SetForegroundWindow(hWinXWnd);
|
||||
|
||||
while (!(*((HMENU*)((char*)params->_this + 0xe8))))
|
||||
@ -990,7 +995,13 @@ FARPROC explorer_GetProcAddressHook(HMODULE hModule, const CHAR* lpProcName)
|
||||
#pragma region "Open power user menu on Win+X"
|
||||
LRESULT explorer_SendMessageW(HWND hWndx, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
if (uMsg == TB_GETTEXTROWS)
|
||||
if (uMsg == 0x579) // "Raise desktop" - basically shows desktop or the windows
|
||||
// wParam = 3 => show desktop
|
||||
// wParam = 2 => raise windows
|
||||
{
|
||||
|
||||
}
|
||||
else if (uMsg == TB_GETTEXTROWS)
|
||||
{
|
||||
HWND hWnd = FindWindowEx(
|
||||
NULL,
|
||||
|
Loading…
x
Reference in New Issue
Block a user