June 12, 2026
1:11 a.m.
Xdnd protocol uses 16-bit signed coordinates for mouse position. When the cursor is on a secondary monitor left of the primary, coordinates are negative. LOWORD/HIWORD extract the low 16 bits as unsigned, causing sign loss when assigning to RECT fields. Fix by casting LOWORD/HIWORD result to SHORT before assignment, ensuring proper sign extension on both 32-bit and 64-bit Wine. Test on deepin v25 & UOS V20 -- https://gitlab.winehq.org/wine/wine/-/merge_requests/11133