mirror of
https://github.com/valinet/ExplorerPatcher.git
synced 2024-11-23 23:21:08 +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,7 +2125,10 @@ BOOL explorer_TrackPopupMenuExHook(
|
||||
LaunchPropertiesGUI(hModule);
|
||||
return FALSE;
|
||||
}
|
||||
explorer_TrackPopupMenuExElapsed = milliseconds_now();
|
||||
if (!bIsSecondaryTaskbar)
|
||||
{
|
||||
explorer_TrackPopupMenuExElapsed = milliseconds_now();
|
||||
}
|
||||
}
|
||||
return b;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user