Skip to content

Commit

Permalink
gh-1306, gh-460: Perhaps this fixes unexpected ‘Tool window’.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximus5 committed Nov 13, 2017
1 parent 1760733 commit 685149a
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/ConEmu/ConEmuApp.cpp
Expand Up @@ -1347,7 +1347,22 @@ LRESULT CALLBACK AppWndProc(HWND hWnd, UINT messg, WPARAM wParam, LPARAM lParam)
gpConEmu->setFocus();
}

result = DefWindowProc(hWnd, messg, wParam, lParam);
// gh-1306, gh-460
switch (messg)
{
case WM_WINDOWPOSCHANGING:
// AppWindow must be visible but always out-of-screen
if (lParam)
{
LPWINDOWPOS p = (LPWINDOWPOS)lParam;
p->flags &= ~SWP_NOMOVE;
p->x = p->y = -32000;
}
break;

default:
result = DefWindowProc(hWnd, messg, wParam, lParam);
}
return result;
}

Expand Down

0 comments on commit 685149a

Please sign in to comment.