forked from 1b-agent/opencadstudio-upstream
A minimized window has a 0x0 surface; the renderer's screenshot path panicked on the empty read-back buffer and took the whole application down. The capture op now checks the window size first and answers with an error instead of requesting the screenshot. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>