mirror of
https://github.com/valinet/ExplorerPatcher.git
synced 2024-11-24 07:30:22 +01:00
Seconday taskbars' context menu is displayed similary to the primary taskbar's context menu
This commit is contained in:
parent
94f1ca0bd8
commit
b31605439f
@ -2077,9 +2077,14 @@ BOOL explorer_TrackPopupMenuExHook(
|
||||
bContainsOwn = CheckIfMenuContainsOwnPropertiesItem(hMenu);
|
||||
}
|
||||
|
||||
if (elapsed > POPUPMENU_EX_ELAPSED || !bFlyoutMenus)
|
||||
wchar_t wszClassNameOfWindowUnderCursor[200];
|
||||
POINT p; p.x = x; p.y = y;
|
||||
GetClassNameW(WindowFromPoint(p), wszClassNameOfWindowUnderCursor, 200);
|
||||
BOOL bIsSecondaryTaskbar = (!wcscmp(wszClassName, L"Shell_SecondaryTrayWnd") && !wcscmp(wszClassNameOfWindowUnderCursor, L"Shell_SecondaryTrayWnd"));
|
||||
|
||||
if (elapsed > POPUPMENU_EX_ELAPSED || !bFlyoutMenus || bIsSecondaryTaskbar)
|
||||
{
|
||||
if (bCenterMenus)
|
||||
if (bCenterMenus && !bIsSecondaryTaskbar)
|
||||
{
|
||||
PopupMenuAdjustCoordinatesAndFlags(&x, &y, &uFlags);
|
||||
}
|
||||
@ -2120,8 +2125,11 @@ BOOL explorer_TrackPopupMenuExHook(
|
||||
LaunchPropertiesGUI(hModule);
|
||||
return FALSE;
|
||||
}
|
||||
if (!bIsSecondaryTaskbar)
|
||||
{
|
||||
explorer_TrackPopupMenuExElapsed = milliseconds_now();
|
||||
}
|
||||
}
|
||||
return b;
|
||||
}
|
||||
long long pnidui_TrackPopupMenuElapsed = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user