Browse Source

Bug fix: restore focus to previous window after archive menu dismiss

pull/20/head
Valentin Radu 4 years ago
parent
commit
34a7fd0eb2
  1. 2
      ExplorerPatcherLibrary/dllmain.c

2
ExplorerPatcherLibrary/dllmain.c

@ -476,6 +476,7 @@ LRESULT CALLBACK CLauncherTipContextMenu_WndProc( @@ -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( @@ -517,6 +518,7 @@ LRESULT CALLBACK CLauncherTipContextMenu_WndProc(
&(pt)
);
free(unknown_array);
SetForegroundWindow(prevhWnd);
if (res == 1 || res == 2)
{

Loading…
Cancel
Save