Skip to content

Commit a43cf39

Browse files
authored
Cancel pending hover timer before showing Win+X (#2554)
Cancel hover timer before showing Win+X
1 parent 93db215 commit a43cf39

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎Src/StartMenu/StartMenuDLL/StartMenuDLL.cpp‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4229,6 +4229,17 @@ if (!g_bTrimHooks)
42294229
}
42304230
else if (bShowWinX)
42314231
{
4232+
// Win+X is shown asynchronously on Windows 11. Cancel any pending
4233+
// hover-open timer first, otherwise it can open the configured
4234+
// hover menu a moment later and dismiss Win+X again.
4235+
if (taskBar->bTimer)
4236+
{
4237+
taskBar->bTimer=false;
4238+
if (taskBar->startButton)
4239+
KillTimer(taskBar->startButton,'CLSM');
4240+
if (taskBar->oldButton && taskBar->oldButton!=taskBar->startButton)
4241+
KillTimer(taskBar->oldButton,'CLSM');
4242+
}
42324243
ShowWinX();
42334244
}
42344245
else if (bShowWin7)

0 commit comments

Comments
 (0)