Commit 9ac9d7b8 authored by Aaron Loucks's avatar Aaron Loucks Committed by Camilla Löwy
Browse files

Win32: Disable non-client painting if undecorated

Fixes an issue where a small title bar and window caption
buttons were being painted after restoring a minimized
undecorated window.

Closes #1383.
parent e2988252
......@@ -1161,6 +1161,19 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
DragFinish(drop);
return 0;
}
case WM_NCACTIVATE:
case WM_NCPAINT:
{
// HACK: Prevent title bar artifacts from appearing after restoring
// a minimized borderless window
if (!window->decorated)
{
return TRUE;
}
break;
}
}
return DefWindowProcW(hWnd, uMsg, wParam, lParam);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment