Making a custom titlebar

If you know Win32 code it is possible to alter GLFW to get borderless with snapping to work, but you’ll need to implement your own move and size controls.

See:

The basic changes in win32_window.c were:

static DWORD getWindowStyle(const _GLFWwindow* window)
{
    DWORD style = WS_CLIPSIBLINGS | WS_CLIPCHILDREN;

    if (window->monitor)
        style |= WS_POPUP;
    else
    {
        style |= WS_SYSMENU | WS_MINIMIZEBOX;

        if (window->decorated)
        {
            style |= WS_CAPTION;

            if (window->resizable)
                style |= WS_MAXIMIZEBOX | WS_THICKFRAME;
        }
        else
            style |= WS_POPUP | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_CAPTION;
    }

    return style;
}

and also add the following on lines 1118 in win32_window.c just before the case WM_PAINT line.

        case WM_NCCALCSIZE:
        if (!window->decorated) {
            return 0;
        }
        break;

This maximizes slightly weirdly for me so it may need some further work.