mirror of
https://github.com/valinet/ExplorerPatcher.git
synced 2024-11-23 23:21:08 +01:00
Bug fix: restore focus to previous window after archive menu dismiss
This commit is contained in:
parent
b36b571df8
commit
34a7fd0eb2
@ -476,6 +476,7 @@ LRESULT CALLBACK CLauncherTipContextMenu_WndProc(
|
||||
POINT pt;
|
||||
GetCursorPos(&pt);
|
||||
|
||||
HWND prevhWnd = GetForegroundWindow();
|
||||
SetForegroundWindow(hWnd);
|
||||
|
||||
HMENU hMenu = CreatePopupMenu();
|
||||
@ -517,6 +518,7 @@ LRESULT CALLBACK CLauncherTipContextMenu_WndProc(
|
||||
&(pt)
|
||||
);
|
||||
free(unknown_array);
|
||||
SetForegroundWindow(prevhWnd);
|
||||
|
||||
if (res == 1 || res == 2)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user