mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-10-08 11:39:06 +11:00
Cancel pending hover timer before showing Win+X (#2554)
Cancel hover timer before showing Win+X
This commit is contained in:
@@ -4229,6 +4229,17 @@ if (!g_bTrimHooks)
|
||||
}
|
||||
else if (bShowWinX)
|
||||
{
|
||||
// Win+X is shown asynchronously on Windows 11. Cancel any pending
|
||||
// hover-open timer first, otherwise it can open the configured
|
||||
// hover menu a moment later and dismiss Win+X again.
|
||||
if (taskBar->bTimer)
|
||||
{
|
||||
taskBar->bTimer=false;
|
||||
if (taskBar->startButton)
|
||||
KillTimer(taskBar->startButton,'CLSM');
|
||||
if (taskBar->oldButton && taskBar->oldButton!=taskBar->startButton)
|
||||
KillTimer(taskBar->oldButton,'CLSM');
|
||||
}
|
||||
ShowWinX();
|
||||
}
|
||||
else if (bShowWin7)
|
||||
|
||||
Reference in New Issue
Block a user