diff options
| author | Sebastien de Graffenried <seb.degraff@gmail.com> | 2025-08-31 17:22:57 +0200 |
|---|---|---|
| committer | Sebastien de Graffenried <seb.degraff@gmail.com> | 2025-08-31 17:22:57 +0200 |
| commit | 609afa13bb72ee7db8513d431b180a8095422d46 (patch) | |
| tree | 2c5f22d4dc862dea42bbb54014f57d2b56e6933f | |
| parent | 42640f062344e1df3b2b32d570e88be9bdf05757 (diff) | |
sokol_app, macos: fix not showing the correct cursor sometimes
e.g when hovering the frame of the window (which changes the cursor), then coming back inside the window, the cursor will be incorrect
| -rw-r--r-- | sokol_app.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sokol_app.h b/sokol_app.h index cd29b4b5..07e9b627 100644 --- a/sokol_app.h +++ b/sokol_app.h @@ -4857,6 +4857,9 @@ static void _sapp_gl_make_current(void) { _sapp_macos_mods(event)); } } +- (void)cursorUpdate:(NSEvent *)event { + _sapp_macos_update_cursor(_sapp.mouse.current_cursor, _sapp.mouse.shown); +} @end #endif // macOS |