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.
diff --git a/src/win32_window.c b/src/win32_window.c
index 796ae15..daef153 100644
--- a/src/win32_window.c
+++ b/src/win32_window.c
@@ -1161,6 +1161,19 @@
             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);