mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-23 00:50:35 +01:00
fb0af50553
## Summary Fixes an issue where GPUI's handling of `WM_NCLBUTTONDOWN` prevented Windows from processing default titlebar interactions (dragging, caption buttons, and border resize). ## Changes - Allow OS to handle `WM_NCLBUTTONDOWN` events for `HTCAPTION`, caption button areas, and resize border areas (`HTLEFT`, `HTRIGHT`, `HTTOP`, `HTBOTTOM`, `HTTOPLEFT`, `HTTOPRIGHT`, `HTBOTTOMLEFT`, `HTBOTTOMRIGHT`) - Use current cursor position in `WM_NCHITTEST` for accurate hit-testing ## Testing - Manual testing on Windows: titlebar dragging works - Manual testing on Windows: minimize/maximize/close buttons work - Manual testing on Windows: window border resize works in all directions Release Notes: - N/A