capy-ui / capy

💻Build one codebase and get native UI on Windows, Linux and Web
https://capy-ui.org
Mozilla Public License 2.0
1.6k stars 60 forks source link

errenous masking of windows message flags #65

Open expikr opened 10 months ago

expikr commented 10 months ago

https://github.com/capy-ui/capy/blob/c9e5ff8b3c4f2d42aedf3f610faf28336de4d8d8/src/backends/win32/backend.zig#L1600

This doesn't seem right, it will treat any message whose last byte matches 0x12 as quit, e.g. WM_HOTKEY, WM_EXITMENULOOP, WM_SYSCOMMAND, and those in the WM_USER + x ranges.