|
@@ -16,6 +16,22 @@ unfortunately slipped through testing:
|
|
|
|
|
|
Both fixes are in this PR: https://github.com/floooh/sokol/pull/1219
|
|
|
|
|
|
+- sokol_app.h win32: Fix mouse locking behaviour in edge cases: an assert could
|
|
|
+ be triggered on Win32 when the mouse is currently locked and the window focus
|
|
|
+ is stolen via Ctrl-Shift-Esc or Ctrl-Alt-Del (basically: opening the task manager),
|
|
|
+ also even without the assert, the mouse might remain stucked in 'mouse lock mode'
|
|
|
+ while the task manager is open. The behaviour has been worked around by two changes:
|
|
|
+
|
|
|
+ - a return value `false` from GetCursorPos() will be handled instead of asserted
|
|
|
+ - a return value `false` from SetCursorPos() will be ignored
|
|
|
+ - trying to set lock the mouse while the application window isn't in the foreground
|
|
|
+ will be ignored
|
|
|
+ - the check whether a locked mouse must be unlocked now happens via polling
|
|
|
+ the current foreground window instead of WM_KILLFOCUS
|
|
|
+
|
|
|
+ See PR https://github.com/floooh/sokol/pull/1220 for details. Many thanks to
|
|
|
+ @Hisashimaru for bringing up the issue!
|
|
|
+
|
|
|
### 08-Mar-2025
|
|
|
|
|
|
Initial compute shader support has been merged into sokol_gfx.h.
|